public class Caches extends Object
| Modifier and Type | Method and Description | 
|---|---|
static org.infinispan.AdvancedCache | 
asyncWriteCache(org.infinispan.AdvancedCache cache,
               org.infinispan.context.Flag extraFlag)
Transform a given cache into a cache that writes cache entries without
 waiting for them to complete, adding an extra flag. 
 | 
static void | 
broadcastEvictAll(org.infinispan.AdvancedCache cache)
Broadcast an evict-all command with the given cache instance. 
 | 
static org.infinispan.AdvancedCache | 
failSilentReadCache(org.infinispan.AdvancedCache cache)
Transform a given cache into a cache that fails silently if
 cache reads fail. 
 | 
static org.infinispan.AdvancedCache | 
failSilentWriteCache(org.infinispan.AdvancedCache cache)
Transform a given cache into a cache that fails silently if cache writes fail. 
 | 
static org.infinispan.AdvancedCache | 
failSilentWriteCache(org.infinispan.AdvancedCache cache,
                    org.infinispan.context.Flag extraFlag)
Transform a given cache into a cache that fails silently if
 cache writes fail, adding an extra flag. 
 | 
static org.infinispan.AdvancedCache | 
ignoreReturnValuesCache(org.infinispan.AdvancedCache cache)
Transform a given cache into a cache that ignores return values for
 operations returning previous values, i.e. 
 | 
static org.infinispan.AdvancedCache | 
ignoreReturnValuesCache(org.infinispan.AdvancedCache cache,
                       org.infinispan.context.Flag extraFlag)
Transform a given cache into a cache that ignores return values for
 operations returning previous values, i.e. 
 | 
static boolean | 
isClustered(org.infinispan.AdvancedCache cache)
Indicates whether the given cache is configured to cluster its contents. 
 | 
static boolean | 
isInvalidationCache(org.infinispan.AdvancedCache cache)
Indicates whether the given cache is configured with
  
CacheMode.INVALIDATION_ASYNC or
 CacheMode.INVALIDATION_SYNC. | 
static boolean | 
isSynchronousCache(org.infinispan.AdvancedCache cache)
Indicates whether the given cache is configured with
  
CacheMode.REPL_SYNC,
 CacheMode.INVALIDATION_SYNC, or
 CacheMode.DIST_SYNC. | 
static org.infinispan.AdvancedCache | 
localCache(org.infinispan.AdvancedCache cache)
Transform a given cache into a local cache 
 | 
static void | 
removeAll(org.infinispan.AdvancedCache cache)  | 
static <T> T | 
withinTx(org.infinispan.AdvancedCache cache,
        Callable<T> c)
Call an operation within a transaction. 
 | 
static <T> T | 
withinTx(TransactionManager tm,
        Callable<T> c)
Call an operation within a transaction. 
 | 
public static <T> T withinTx(org.infinispan.AdvancedCache cache,
             Callable<T> c)
                  throws Exception
T - type of callable returncache - instance whose transaction manager to usec - callable instance to run within a transactionException - if any operation within the transaction failspublic static <T> T withinTx(TransactionManager tm, Callable<T> c) throws Exception
T - type of callable returntm - transaction managerc - callable instance to run within a transactionException - if any operation within the transaction failspublic static org.infinispan.AdvancedCache localCache(org.infinispan.AdvancedCache cache)
cache - to be transformedpublic static org.infinispan.AdvancedCache ignoreReturnValuesCache(org.infinispan.AdvancedCache cache)
BasicCache.put(Object, Object)cache - to be transformedpublic static org.infinispan.AdvancedCache ignoreReturnValuesCache(org.infinispan.AdvancedCache cache,
                                                   org.infinispan.context.Flag extraFlag)
BasicCache.put(Object, Object),
 adding an extra flag.cache - to be transformedextraFlag - to add to the returned cachepublic static org.infinispan.AdvancedCache asyncWriteCache(org.infinispan.AdvancedCache cache,
                                           org.infinispan.context.Flag extraFlag)
cache - to be transformedextraFlag - to add to the returned cachepublic static org.infinispan.AdvancedCache failSilentWriteCache(org.infinispan.AdvancedCache cache)
cache - to be transformedpublic static org.infinispan.AdvancedCache failSilentWriteCache(org.infinispan.AdvancedCache cache,
                                                org.infinispan.context.Flag extraFlag)
cache - to be transformedextraFlag - to be added to returned cachepublic static org.infinispan.AdvancedCache failSilentReadCache(org.infinispan.AdvancedCache cache)
cache - to be transformedpublic static void broadcastEvictAll(org.infinispan.AdvancedCache cache)
cache - instance used to broadcast commandpublic static boolean isInvalidationCache(org.infinispan.AdvancedCache cache)
CacheMode.INVALIDATION_ASYNC or
 CacheMode.INVALIDATION_SYNC.cache - to check for invalidation configurationpublic static boolean isSynchronousCache(org.infinispan.AdvancedCache cache)
CacheMode.REPL_SYNC,
 CacheMode.INVALIDATION_SYNC, or
 CacheMode.DIST_SYNC.cache - to check for synchronous configurationpublic static boolean isClustered(org.infinispan.AdvancedCache cache)
CacheMode.LOCALcache - to check whether it clusters its contentspublic static void removeAll(org.infinispan.AdvancedCache cache)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.