gathers results from function execution
More...
gathers results from function execution
- See also
- FunctionService
◆ execute() [1/2]
std::shared_ptr<ResultCollector> apache::geode::client::Execution::execute |
( |
const std::shared_ptr< CacheableVector > & |
routingObj, |
|
|
const std::shared_ptr< Cacheable > & |
args, |
|
|
const std::shared_ptr< ResultCollector > & |
rs, |
|
|
const std::string & |
func, |
|
|
std::chrono::milliseconds |
timeout |
|
) |
| |
Executes the function using its name.
- Parameters
-
routingObj | Set defining the data filter to be used for executing the function |
args | user data passed to the function execution |
rs | * Specifies the ResultCollector that will receive the results after the function has been executed. |
func | the name of the function to be executed |
timeout | value to wait for the operation to finish before timing out. |
- Exceptions
-
Exception | if there is an error during function execution |
- Returns
- either a default result collector or one specified by {}
◆ execute() [2/2]
std::shared_ptr<ResultCollector> apache::geode::client::Execution::execute |
( |
const std::string & |
func, |
|
|
std::chrono::milliseconds |
timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT |
|
) |
| |
Executes the function using its name.
- Parameters
-
func | the name of the function to be executed |
timeout | value to wait for the operation to finish before timing out. |
- Exceptions
-
Exception | if there is an error during function execution |
- Returns
- either a default result collector or one specified by {}
◆ withArgs()
Specifies the user data passed to the function when it is executed.
- Parameters
-
args | user data passed to the function execution |
- Returns
- an Execution with args
- Exceptions
-
◆ withCollector()
◆ withFilter()
Specifies a data filter of routing objects for selecting the Geode members to execute the function.
If the filter set is empty the function is executed on all members that have the FunctionService::onRegion(Region).
- Parameters
-
routingObj | Set defining the data filter to be used for executing the function |
- Returns
- an Execution with the filter
- Exceptions
-