The InvokeOptions class contains options that control the blocking and retry behavior of the NamedCache::lock method.
More...
#include <invoke_options.h>
The InvokeOptions class contains options that control the blocking and retry behavior of the NamedCache::lock method.
| sosscli::InvokeOptions::InvokeOptions |
( |
bool |
throw_on_error, |
|
|
int32_t |
invoke_timeout_s |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| throw_on_error | Determines whether a method will throw an exception derived from sosscli::exceptions::StateServerException if the ScaleOut StateServer service returns an error, or if the registered eval or merge functions return an error. If false, error code information will be available in the returned InvokeResult. |
| invoke_timeout_s | Amount of time (in seconds) before invocation times out, or SOSSLIB_INFINITE_TIMEOUT. |
| InvokeOptions& sosscli::InvokeOptions::set_invoke_timeout_s |
( |
int32_t |
invoke_timeout_s) | |
|
|
inline |
Sets the amount of time (in milliseconds) between polling attempts to acquire an exclusive lock on a cached object.
- Parameters
-
| invoke_timeout_s | Amount of time (in seconds) before invocation times out, or SOSSLIB_INFINITE_TIMEOUT. |
- Returns
- *this by reference to allow for chained setter method calls.
| InvokeOptions& sosscli::InvokeOptions::set_throw_on_error |
( |
bool |
throw_on_error) | |
|
|
inline |
Sets whether a method will throw an exception derived from sosscli::exceptions::StateServerException if the ScaleOut StateServer service returns an error.
If false, error code information will be available in the returned InvokeResult.
- Parameters
-
| throw_on_error | Determines whether a method will throw an exception derived from sosscli::exceptions::StateServerException if the ScaleOut StateServer service returns an error, or if the registered eval or merge functions return an error. If false, error code information will be available in the returned InvokeResult. |
- Returns
- *this by reference to allow for chained setter method calls.
| bool sosscli::InvokeOptions::throw_on_error |
( |
) | |
|
|
inline |
The documentation for this class was generated from the following file: