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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpireKeyStartWithSelector
public ExpireKeyStartWithSelector(String keyStartWith)
select
public boolean select(K key,
ObjectCacheInfo<? extends V> ocinfo)
- Description copied from interface:
CachedObjectSelector
- Indicates whether or not a given key must be selected
- Specified by:
select in interface CachedObjectSelector<K extends Serializable,V>
- Parameters:
key - the name of the cache entryocinfo - the cache info instance
- Returns:
true if the selector wants to select the given key, false otherwise
onSelect
public void onSelect(ExoCache<? extends K,? extends V> cache,
K key,
ObjectCacheInfo<? extends V> ocinfo)
throws Exception
- Description copied from interface:
CachedObjectSelector
- Action to perform on selected keys
- Specified by:
onSelect in interface CachedObjectSelector<K extends Serializable,V>
- Parameters:
cache - the exo cacheocinfo - the cache info instance
- Throws:
Exception
Copyright © 2014 eXo Platform SAS. All Rights Reserved.