Package org.exoplatform.services.cache
Class ExpireKeyStartWithSelector<K extends Serializable,V>
- java.lang.Object
-
- org.exoplatform.services.cache.ExpireKeyStartWithSelector<K,V>
-
- All Implemented Interfaces:
CachedObjectSelector<K,V>
public class ExpireKeyStartWithSelector<K extends Serializable,V> extends Object implements CachedObjectSelector<K,V>
Created by The eXo Platform SAS Author : Thuannd nhudinhthuan@yahoo.com Apr 4, 2006
-
-
Constructor Summary
Constructors Constructor Description ExpireKeyStartWithSelector(String keyStartWith)
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Constructor Detail
-
ExpireKeyStartWithSelector
public ExpireKeyStartWithSelector(String keyStartWith)
-
-
Method Detail
-
select
public boolean select(K key, ObjectCacheInfo<? extends V> ocinfo)
Description copied from interface:CachedObjectSelectorIndicates whether or not a given key must be selected- Specified by:
selectin interfaceCachedObjectSelector<K extends Serializable,V>- Parameters:
key- the name of the cache entryocinfo- the cache info instance- Returns:
trueif the selector wants to select the given key,falseotherwise
-
onSelect
public void onSelect(ExoCache<? extends K,? extends V> cache, K key, ObjectCacheInfo<? extends V> ocinfo) throws Exception
Description copied from interface:CachedObjectSelectorAction to perform on selected keys- Specified by:
onSelectin interfaceCachedObjectSelector<K extends Serializable,V>- Parameters:
cache- the exo cachekey- cache entry keyocinfo- the cache info instance- Throws:
Exception- Exception
-
-