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.
CachedObjectSelector interface provides a way to perform action on selected keys.
-
Method Summary
-
Method Details
-
select
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
-
onSelect
void onSelect(ExoCache<? extends K, ? extends V> cache, K key, ObjectCacheInfo<? extends V> ocinfo) throws ExceptionAction to perform on selected keys- Parameters:
cache- the exo cachekey- cache entry keyocinfo- the cache info instance- Throws:
Exception- Exception
-