eXo Kernel :: Component :: Cache Service 2.4.8-GA

org.exoplatform.services.cache
Class ExpireKeyStartWithSelector<K extends Serializable,V>

java.lang.Object
  extended by 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
ExpireKeyStartWithSelector(String keyStartWith)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpireKeyStartWithSelector

public ExpireKeyStartWithSelector(String keyStartWith)
Method Detail

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 entry
ocinfo - 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 cache
ocinfo - the cache info instance
Throws:
Exception

eXo Kernel :: Component :: Cache Service 2.4.8-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.