com.hazelcast.cache.impl.eviction
Interface EvictableStore<A,E extends Evictable>

All Known Subinterfaces:
CacheRecordMap<K,V>, NearCacheRecordMap<K,V>, SampleableCacheRecordMap<K,V>, SampleableEvictableStore<A,E>, SampleableNearCacheRecordMap<K,V>
All Known Implementing Classes:
CacheRecordHashMap, HeapNearCacheRecordMap

public interface EvictableStore<A,E extends Evictable>

Interface for store implementations that holds Evictable entries to evict.


Method Summary
<C extends EvictionCandidate<A,E>>
int
evict(Iterable<C> evictionCandidates, EvictionListener<A,E> evictionListener)
          The evict method is called by the EvictionStrategy to eventually evict, by the policy, selected candidates from the internal data structures.
 

Method Detail

evict

<C extends EvictionCandidate<A,E>> int evict(Iterable<C> evictionCandidates,
                                             EvictionListener<A,E> evictionListener)
The evict method is called by the EvictionStrategy to eventually evict, by the policy, selected candidates from the internal data structures.

Parameters:
evictionCandidates - Multiple EvictionCandidate to be evicted
evictionListener - EvictionListener to listen evicted entries
Returns:
evicted entry count


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.