| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheAdapter
Infinispan cache abstraction.
| Method Summary | ||
|---|---|---|
|  void | addListener(Object listener)Add listener to this cache. | |
|  void | broadcastEvictAll()TODO | |
|  void | clear()Clear the cache. | |
|  boolean | containsKey(Object key)Method to check whether a certain key exists in this cache. | |
|  void | evict(Object key)Evict the given key from memory. | |
|  Object | get(Object key)Performs an get(Object)on the cache, wrapping any exception in aCacheException. | |
|  AddressAdapter | getAddress()Get local cluster address. | |
|  Object | getAllowingTimeout(Object key)Performs an get(Object)on the cache ignoring anyTimeoutExceptionand wrapping any other exception in aCacheException. | |
|  org.infinispan.Cache | getCache() | |
|  org.infinispan.config.Configuration | getConfiguration()Get cache configuration. | |
|  List<AddressAdapter> | getMembers()Get cluster members. | |
|  boolean | isClusteredInvalidation()Is this cache participating in a cluster with invalidation? | |
|  boolean | isClusteredReplication()Is this cache participating in a cluster with replication? | |
|  boolean | isSynchronous()Is this cache configured for synchronous communication? | |
|  Set | keySet()Set of keys of this cache. | |
|  void | put(Object key,
    Object value)Performs a put(Object, Object)on the cache,
 wrapping any exception in aCacheException. | |
|  void | putAllowingTimeout(Object key,
                   Object value)Performs a put(Object, Object)on the cache ignoring
 anyTimeoutExceptionand wrapping any exception in aCacheException. | |
|  void | putForExternalRead(Object key,
                   Object value)See Cache.putForExternalRead(Object, Object)for detailed documentation. | |
|  void | remove(Object key)Performs a remove(Object), wrapping any exception in
 aCacheException. | |
|  void | removeListener(Object listener)Remove listener from cache instance. | |
|  int | size()Size of cache. | |
|  void | stop()Stops the cache. | |
|  Map | toMap()This method returns a Map view of the cache. | |
|  CacheAdapter | withFlags(FlagAdapter... flagAdapters)A builder-style method that adds flags to any cache API call. | |
| 
 | withinTx(Callable<T> c)TODO | |
| Method Detail | 
|---|
boolean isClusteredInvalidation()
boolean isClusteredReplication()
boolean isSynchronous()
Set keySet()
CacheAdapter withFlags(FlagAdapter... flagAdapters)
flagAdapters - a set of flags to apply.  See the FlagAdapter documentation.
boolean containsKey(Object key)
key - key to look up.
Object get(Object key)
           throws CacheException
get(Object) on the cache, wrapping any exception in a CacheException.
key - key to retrieve
CacheException
Object getAllowingTimeout(Object key)
                          throws CacheException
get(Object) on the cache ignoring any TimeoutException 
 and wrapping any other exception in a CacheException.
key - key to retrieve
CacheException
void put(Object key,
         Object value)
         throws CacheException
put(Object, Object) on the cache,
 wrapping any exception in a CacheException.
key - key whose value will be modifiedvalue - data to store in the cache entry
CacheException
void putAllowingTimeout(Object key,
                        Object value)
                        throws CacheException
put(Object, Object) on the cache ignoring
 any TimeoutException and wrapping any exception in a
 CacheException.
key - key whose value will be modifiedvalue - data to store in the cache entry
CacheException
void putForExternalRead(Object key,
                        Object value)
                        throws CacheException
Cache.putForExternalRead(Object, Object) for detailed documentation.
key - key with which the specified value is to be associated.value - value to be associated with the specified key.
CacheException
void remove(Object key)
            throws CacheException
remove(Object), wrapping any exception in
 a CacheException.
key - key to be removed
CacheException
void evict(Object key)
           throws CacheException
key - to evict.
CacheException
void clear()
           throws CacheException
CacheExceptionvoid stop()
void addListener(Object listener)
listener - to be added to cache.AddressAdapter getAddress()
List<AddressAdapter> getMembers()
int size()
Map toMap()
void removeListener(Object listener)
listener - to be removed.org.infinispan.config.Configuration getConfiguration()
void broadcastEvictAll()
<T> T withinTx(Callable<T> c)
           throws Exception
T - c - 
Exceptionorg.infinispan.Cache getCache()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||