org.modeshape.jcr
Class InfinispanUtil
java.lang.Object
org.modeshape.jcr.InfinispanUtil
public class InfinispanUtil
- extends Object
A set of utility methods for Infinispan caches.
Method Summary |
static
|
getAllKeys(org.infinispan.Cache<K,V> cache)
Get all of the keys in the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final Logger LOGGER
getAllKeys
public static <K,V> InfinispanUtil.Sequence<K> getAllKeys(org.infinispan.Cache<K,V> cache)
throws org.infinispan.loaders.CacheLoaderException,
InterruptedException,
ExecutionException
- Get all of the keys in the cache.
- Type Parameters:
K
- the type of keyV
- the type of value- Parameters:
cache
- the cache
- Returns:
- the sequence that can be used to obtain the keys; never null
- Throws:
org.infinispan.loaders.CacheLoaderException
- if there is an error within the cache loader
InterruptedException
- if the process is interrupted
ExecutionException
- if there is an error while getting all keys
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.