Package com.tangosol.net.cache
Interface ConfigurableCacheMap.EvictionApprover
-
- Enclosing interface:
- ConfigurableCacheMap
public static interface ConfigurableCacheMap.EvictionApprover
EvictionApprover is used to approve the eviction of an entry from the underlying ConfigurableCacheMap. An approver could be configured on a ConfigurableCacheMap to provide fine-grained control over whether a particular entry is eligible for eviction.
-
-
Field Summary
Fields Modifier and Type Field Description static ConfigurableCacheMap.EvictionApprover
DISAPPROVER
Never approving EvictionApprover.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEvictable(ConfigurableCacheMap.Entry entry)
Get an eviction approval for the specified entry.
-
-
-
Field Detail
-
DISAPPROVER
static final ConfigurableCacheMap.EvictionApprover DISAPPROVER
Never approving EvictionApprover.
-
-
Method Detail
-
isEvictable
boolean isEvictable(ConfigurableCacheMap.Entry entry)
Get an eviction approval for the specified entry.- Parameters:
entry
- the entry for which the underlying ConfigurableCacheMap is seeking an eviction approval- Returns:
- true iff the specified entry is allowed to be evicted
-
-