16 #ifndef HAZELCAST_CLIENT_INTERNAL_EVICTION_EVICTABLE_H_
17 #define HAZELCAST_CLIENT_INTERNAL_EVICTION_EVICTABLE_H_
20 #include <boost/shared_ptr.hpp>
22 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
24 #pragma warning(disable: 4251) //for dll export
65 virtual boost::shared_ptr<V>
getValue()
const {
67 return boost::shared_ptr<V>();
75 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
virtual int64_t getCreationTime() const =0
Gets the creation time of this Evictable in milliseconds.
virtual int64_t getLastAccessTime()=0
Gets the latest access time difference of this Evictable in milliseconds.
virtual int32_t getAccessHit()=0
Gets the access hit count of this Evictable.
Interface for entries, records or whatever that can be evicted.
Definition: Evictable.h:35
virtual boost::shared_ptr< V > getValue() const
Gets the value of this Evictable.
Definition: Evictable.h:65