The PutOptions class contains options that control client cache behavior of put operations.
More...
#include <put_options.h>
The PutOptions class contains options that control client cache behavior of put operations.
sosscli::PutOptions::PutOptions |
( |
bool |
use_client_cache, |
|
|
bool |
throw_on_error |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
use_client_cache | Whether the put operation will insert, or possibly update, an up-to-date instance of the object into the API's client cache. |
throw_on_error | Determines 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 PutResult. |
- Returns
PutOptions& sosscli::PutOptions::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 PutResult.
- 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. If false, error code information will be available in the returned PutResult. |
- Returns
- *this by reference to allow for chained setter method calls.
PutOptions& sosscli::PutOptions::set_use_client_cache |
( |
bool |
use_client_cache) | |
|
|
inline |
Sets whether the put operation should insert, or possibly update, an up-to-date instance of the object into the API's client cache.
- Parameters
-
use_client_cache | Whether the put operation will insert, or possibly update, an up-to-date instance of the object into the API's client cache. |
- Returns
- *this by reference to allow for chained setter method calls.
bool sosscli::PutOptions::throw_on_error |
( |
) | |
const |
|
inline |
Returns a boolean indicating 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 PutResult.
bool sosscli::PutOptions::use_client_cache |
( |
) | |
const |
|
inline |
Returns a boolean indicating whether the put operation will insert, or possibly update, an up-to-date instance of the object into the API's client cache.
const PutOptions sosscli::PutOptions::CACHE_DEFAULTS |
|
static |
PutOptions constant that indicates that a put/insert operation should use the cache's default options.
The documentation for this class was generated from the following file: