public class ExpireKeyStartWithSelector<K extends Serializable,V> extends Object implements CachedObjectSelector<K,V>
| Constructor and Description |
|---|
ExpireKeyStartWithSelector(String keyStartWith) |
| Modifier and Type | Method and Description |
|---|---|
void |
onSelect(ExoCache<? extends K,? extends V> cache,
K key,
ObjectCacheInfo<? extends V> ocinfo)
Action to perform on selected keys
|
boolean |
select(K key,
ObjectCacheInfo<? extends V> ocinfo)
Indicates whether or not a given key must be selected
|
public ExpireKeyStartWithSelector(String keyStartWith)
public boolean select(K key, ObjectCacheInfo<? extends V> ocinfo)
CachedObjectSelectorselect in interface CachedObjectSelector<K extends Serializable,V>key - the name of the cache entryocinfo - the cache info instancetrue if the selector wants to select the given key, false otherwisepublic void onSelect(ExoCache<? extends K,? extends V> cache, K key, ObjectCacheInfo<? extends V> ocinfo) throws Exception
CachedObjectSelectoronSelect in interface CachedObjectSelector<K extends Serializable,V>cache - the exo cacheocinfo - the cache info instanceExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.