Hazelcast C++ Client
|
An expirable and evictable data object which represents a Near Cache entry. More...
#include <NearCacheRecord.h>
Public Member Functions | |
virtual void | setValue (const boost::shared_ptr< V > &value) |
Sets the value of this NearCacheRecord. More... | |
virtual void | setCreationTime (int64_t time)=0 |
Sets the creation time of this Evictable in milliseconds. More... | |
virtual void | setAccessTime (int64_t time)=0 |
Sets the access time of this Evictable in milliseconds. More... | |
virtual void | setAccessHit (int32_t hit)=0 |
Sets the access hit count of this Evictable. More... | |
virtual void | incrementAccessHit ()=0 |
Increases the access hit count of this Evictable by. More... | |
virtual void | resetAccessHit ()=0 |
Resets the access hit count of this Evictable to. More... | |
virtual bool | isIdleAt (int64_t maxIdleMilliSeconds, int64_t now)=0 |
Checks whether the maximum idle time is passed with respect to the provided time without any access during this time period as. More... | |
virtual int64_t | getInvalidationSequence () const =0 |
virtual void | setInvalidationSequence (int64_t sequence)=0 |
virtual void | setUuid (const boost::shared_ptr< util::UUID > &uuid)=0 |
virtual bool | hasSameUuid (const boost::shared_ptr< util::UUID > &thatUuid) const =0 |
Public Member Functions inherited from hazelcast::client::internal::eviction::Expirable | |
virtual int64_t | getExpirationTime ()=0 |
Gets the expiration time in milliseconds. More... | |
virtual void | setExpirationTime (int64_t expirationTime)=0 |
Sets the expiration time in milliseconds. More... | |
virtual bool | isExpiredAt (int64_t now)=0 |
Checks whether the expiration time is passed with respect to the provided time. More... | |
Public Member Functions inherited from hazelcast::client::internal::eviction::Evictable< V > | |
virtual int64_t | getCreationTime () const =0 |
Gets the creation time of this Evictable in milliseconds. More... | |
virtual int64_t | getLastAccessTime ()=0 |
Gets the latest access time difference of this Evictable in milliseconds. More... | |
virtual int32_t | getAccessHit ()=0 |
Gets the access hit count of this Evictable. More... | |
virtual boost::shared_ptr< V > | getValue () const |
Gets the value of this Evictable. More... | |
Static Public Attributes | |
static const int64_t | TIME_NOT_SET = -1 |
An expirable and evictable data object which represents a Near Cache entry.
Record of NearCacheRecordStore.
<V> | the type of the value stored by this NearCacheRecord |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Checks whether the maximum idle time is passed with respect to the provided time without any access during this time period as.
.
maxIdleMilliSeconds | maximum idle time in milliseconds |
now | current time in milliseconds |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
sequence | last known invalidation sequence at time of this records' creation |
|
pure virtual |
uuid | last known uuid of invalidation source at time of this records' creation |
|
inlinevirtual |
Sets the value of this NearCacheRecord.
value | the value for this NearCacheRecord |