VMware Tanzu GemFire Native C++ Reference 10.3.0
|
Immutable parameter object for accessing and setting the attributes associated with timeToLive
and idleTimeout
.
More...
#include <ExpirationAttributes.hpp>
Public Member Functions | |
ExpirationAttributes () | |
public methods More... | |
ExpirationAttributes (const std::chrono::seconds &expirationTime, const ExpirationAction expirationAction=ExpirationAction::INVALIDATE) | |
Constructs an ExpirationAttributes with the specified expiration time and expiration action. More... | |
ExpirationAction | getAction () const |
Returns the action that should take place when this value or region expires. More... | |
const std::chrono::seconds & | getTimeout () const |
Returns the duration before a region or value expires. More... | |
Immutable parameter object for accessing and setting the attributes associated with timeToLive
and idleTimeout
.
If the expiration action is not specified, it defaults to ExpirationAction.INVALIDATE
. If the timeout is not specified, it defaults to zero (which means to never time out).
apache::geode::client::ExpirationAttributes::ExpirationAttributes | ( | ) |
public methods
constructors Constructs a default ExpirationAttributes
, which indicates no expiration will take place.
|
explicit |
Constructs an ExpirationAttributes
with the specified expiration time and expiration action.
expirationTime | Duration live before it expires |
expirationAction | the action to take when the value expires |
IllegalArgumentException | if expirationTime is nonpositive |
ExpirationAction apache::geode::client::ExpirationAttributes::getAction | ( | ) | const |
Returns the action that should take place when this value or region expires.
const std::chrono::seconds & apache::geode::client::ExpirationAttributes::getTimeout | ( | ) | const |
Returns the duration before a region or value expires.