Package org.exoplatform.services.cache
Interface CachedObjectSelector<K extends Serializable,V>
-
- All Known Implementing Classes:
ExpireKeyStartWithSelector
public interface CachedObjectSelector<K extends Serializable,V>Created by The eXo Platform SAS
CachedObjectSelector interface provides a way to perform action on selected keys.- Author:
- Thuannd nhudinhthuan@yahoo.com
- eXo level API
- Platform
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonSelect(ExoCache<? extends K,? extends V> cache, K key, ObjectCacheInfo<? extends V> ocinfo)Action to perform on selected keysbooleanselect(K key, ObjectCacheInfo<? extends V> ocinfo)Indicates whether or not a given key must be selected
-
-
-
Method Detail
-
select
boolean select(K key, ObjectCacheInfo<? extends V> ocinfo)
Indicates whether or not a given key must be selected- Parameters:
key- the name of the cache entryocinfo- the cache info instance- Returns:
trueif the selector wants to select the given key,falseotherwise
-
-