A
- Type of the accessor (id) of the EvictionCandidate
E
- Type of the Evictable
value of
EvictionCandidate
public interface EvictableStore<A,E extends Evictable>
Evictable
entries to evict.Modifier and Type | Method and Description |
---|---|
<C extends EvictionCandidate<A,E>> |
tryEvict(C evictionCandidate,
EvictionListener<A,E> evictionListener)
The evict method is called by the
EvictionStrategy to eventually evict, by the policy, selected
candidate from the internal data structures. |
<C extends EvictionCandidate<A,E>> boolean tryEvict(C evictionCandidate, EvictionListener<A,E> evictionListener)
EvictionStrategy
to eventually evict, by the policy, selected
candidate from the internal data structures.
It could be the selected evicted candidate cannot be evicted. For example it might be gone at the time when
the method is executed. In this case it will indicate this condition by returning false.evictionCandidate
- EvictionCandidate
to be evictedevictionListener
- EvictionListener
to listen evicted entriestrue
if the candidate was evicted, otherwise returns false
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.