Hazelcast C++ Client
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | Static Public Attributes | List of all members
hazelcast::client::internal::eviction::EvictionListener< A, E > Class Template Reference

Interface for entries, records or whatever that can be evicted via its accessor (key or id). More...

#include <EvictionListener.h>

Public Member Functions

virtual void onEvict (const boost::shared_ptr< A > &evictedEntryAccessor, const boost::shared_ptr< E > &evictedEntry, bool wasExpired)
 Called when an Evictable entry is evicted. More...
 

Static Public Attributes

static const boost::shared_ptr
< EvictionListener< A, E > > 
NO_LISTENER
 Empty EvictionListener.
 

Detailed Description

template<typename A, typename E>
class hazelcast::client::internal::eviction::EvictionListener< A, E >

Interface for entries, records or whatever that can be evicted via its accessor (key or id).

Parameters
<A>Type of the accessor
<E>Type of the Evictable value

Member Function Documentation

template<typename A, typename E>
virtual void hazelcast::client::internal::eviction::EvictionListener< A, E >::onEvict ( const boost::shared_ptr< A > &  evictedEntryAccessor,
const boost::shared_ptr< E > &  evictedEntry,
bool  wasExpired 
)
inlinevirtual

Called when an Evictable entry is evicted.

Parameters
evictedEntryAccessorAccessor of the Evictable entry that is evicted.
evictedEntryEvictable entry that is evicted.
wasExpired@codetrue if the entry was evicted due to expiration,
false
otherwise

The documentation for this class was generated from the following files: