ModeShape Distribution 3.0.0.Beta4

org.modeshape.jcr
Class InfinispanUtil

java.lang.Object
  extended by org.modeshape.jcr.InfinispanUtil

public class InfinispanUtil
extends Object

A set of utility methods for Infinispan caches.


Nested Class Summary
static interface InfinispanUtil.Sequence<T>
          A sequence of values.
 
Field Summary
protected static Logger LOGGER
           
 
Method Summary
static
<K,V> InfinispanUtil.Sequence<K>
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
 

Field Detail

LOGGER

protected static final Logger LOGGER
Method Detail

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 key
V - 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

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.