ModeShape Distribution 3.0.0.Beta3

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
protected static class InfinispanUtil.DistributedKeySequence<T>
          A InfinispanUtil.Sequence implementation that returns the keys returned by multiple futures that make take time to complete.
protected static class InfinispanUtil.GetAllKeys<K,V>
          A DistributedCallable implementation that returns the complete set of keys in an Infinispan cache.
static class InfinispanUtil.IteratorSequence<T>
           
static interface InfinispanUtil.Sequence<T>
          A sequence of values.
 
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
 

Method Detail

getAllKeys

public static <K,V> InfinispanUtil.Sequence<K> getAllKeys(org.infinispan.Cache<K,V> cache)
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

ModeShape Distribution 3.0.0.Beta3

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