16 #ifndef HAZELCAST_CLIENT_INTERNAL_NEARCACHE_NEARCACHERECORD_H_
17 #define HAZELCAST_CLIENT_INTERNAL_NEARCACHE_NEARCACHERECORD_H_
20 #include <boost/shared_ptr.hpp>
22 #include "hazelcast/client/internal/eviction/Evictable.h"
23 #include "hazelcast/client/internal/eviction/Expirable.h"
25 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
27 #pragma warning(disable: 4251) //for dll export
50 static const int64_t TIME_NOT_SET = -1;
59 virtual void setValue(
const boost::shared_ptr<V> &value) {
102 virtual bool isIdleAt(int64_t maxIdleMilliSeconds, int64_t now) = 0;
117 virtual void setUuid(
const boost::shared_ptr<util::UUID> &uuid) = 0;
123 virtual bool hasSameUuid(
const boost::shared_ptr<util::UUID> &thatUuid)
const = 0;
130 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
virtual void setAccessHit(int32_t hit)=0
Sets the access hit count of this Evictable.
virtual void setCreationTime(int64_t time)=0
Sets the creation time of this Evictable in milliseconds.
virtual int64_t getInvalidationSequence() const =0
virtual void setUuid(const boost::shared_ptr< util::UUID > &uuid)=0
virtual void setValue(const boost::shared_ptr< V > &value)
Sets the value of this NearCacheRecord.
Definition: NearCacheRecord.h:59
An expirable and evictable data object which represents a Near Cache entry.
Definition: NearCacheRecord.h:48
Interface for entries, records or whatever that can be evicted.
Definition: Evictable.h:35
virtual void setAccessTime(int64_t time)=0
Sets the access time of this Evictable in milliseconds.
Expiring Data model interface.
Definition: Expirable.h:37
virtual bool hasSameUuid(const boost::shared_ptr< util::UUID > &thatUuid) const =0
Definition: MapEntryView.h:32
virtual void resetAccessHit()=0
Resets the access hit count of this Evictable to.
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 d...
virtual void setInvalidationSequence(int64_t sequence)=0
virtual void incrementAccessHit()=0
Increases the access hit count of this Evictable by.