16 #ifndef HAZELCAST_CLIENT_INTERNAL_EVICTION_EVICTIONLISTENER_H_
17 #define HAZELCAST_CLIENT_INTERNAL_EVICTION_EVICTIONLISTENER_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
37 template <
typename A,
typename E>
38 class EvictionListener {
40 virtual ~EvictionListener() { }
45 static const boost::shared_ptr<EvictionListener<A, E> >
NO_LISTENER;
54 virtual void onEvict(
const boost::shared_ptr<A> &evictedEntryAccessor,
const boost::shared_ptr<E> &evictedEntry,
bool wasExpired) {
63 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
virtual void onEvict(const boost::shared_ptr< A > &evictedEntryAccessor, const boost::shared_ptr< E > &evictedEntry, bool wasExpired)
Called when an Evictable entry is evicted.
Definition: EvictionListener.h:54
static const boost::shared_ptr< EvictionListener< A, E > > NO_LISTENER
Empty EvictionListener.
Definition: EvictionListener.h:45
Definition: MapEntryView.h:32