Package org.infinispan.commons.util
Interface EvictionListener<K,V>
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.0 - This class is not used internally anymore
Eviction listener that is notified when entries are evicted from the underlying container due
to the given eviction policy.
- Since:
- 9.0
- Author:
- wburns
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onEntryActivated
(Object key) Deprecated, for removal: This API element is subject to removal in a future version.Called back when an entry has been activatedvoid
onEntryChosenForEviction
(Map.Entry<K, V> entry) Deprecated, for removal: This API element is subject to removal in a future version.Called back before an entry is evictedvoid
onEntryEviction
(Map<K, V> evicted) Deprecated, for removal: This API element is subject to removal in a future version.Called back after entries have been evictedvoid
onEntryRemoved
(Map.Entry<K, V> entry) Deprecated, for removal: This API element is subject to removal in a future version.Called when an entry is specifically removed from the container.
-
Method Details
-
onEntryEviction
Deprecated, for removal: This API element is subject to removal in a future version.Called back after entries have been evicted- Parameters:
evicted
-
-
onEntryChosenForEviction
Deprecated, for removal: This API element is subject to removal in a future version.Called back before an entry is evicted- Parameters:
entry
-
-
onEntryActivated
Deprecated, for removal: This API element is subject to removal in a future version.Called back when an entry has been activated- Parameters:
key
-
-
onEntryRemoved
Deprecated, for removal: This API element is subject to removal in a future version.Called when an entry is specifically removed from the container.- Parameters:
entry
-
-