public interface CacheAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.lang.Object listener)
Add listener to this cache.
|
void |
broadcastEvictAll()
TODO
|
void |
clear()
Clear the cache.
|
boolean |
containsKey(java.lang.Object key)
Method to check whether a certain key exists in this cache.
|
void |
evict(java.lang.Object key)
Evict the given key from memory.
|
java.lang.Object |
get(java.lang.Object key)
Performs an
get(Object) on the cache, wrapping any exception in a CacheException. |
AddressAdapter |
getAddress()
Get local cluster address.
|
java.lang.Object |
getAllowingTimeout(java.lang.Object key)
Performs an
get(Object) on the cache ignoring any TimeoutException
and wrapping any other exception in a CacheException. |
org.infinispan.Cache |
getCache() |
org.infinispan.config.Configuration |
getConfiguration()
Get cache configuration.
|
java.util.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?
|
java.util.Set |
keySet()
Set of keys of this cache.
|
void |
put(java.lang.Object key,
java.lang.Object value)
Performs a
put(Object, Object) on the cache,
wrapping any exception in a CacheException. |
void |
putAllowingTimeout(java.lang.Object key,
java.lang.Object value)
Performs a
put(Object, Object) on the cache ignoring
any TimeoutException and wrapping any exception in a
CacheException. |
void |
putForExternalRead(java.lang.Object key,
java.lang.Object value)
See
Cache.putForExternalRead(Object, Object) for detailed documentation. |
void |
remove(java.lang.Object key)
Performs a
remove(Object), wrapping any exception in
a CacheException. |
void |
removeListener(java.lang.Object listener)
Remove listener from cache instance.
|
int |
size()
Size of cache.
|
void |
stop()
Stops the cache.
|
java.util.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.
|
<T> T |
withinTx(java.util.concurrent.Callable<T> c)
TODO
|
boolean isClusteredInvalidation()
boolean isClusteredReplication()
boolean isSynchronous()
java.util.Set keySet()
CacheAdapter withFlags(FlagAdapter... flagAdapters)
flagAdapters - a set of flags to apply. See the FlagAdapter documentation.boolean containsKey(java.lang.Object key)
key - key to look up.java.lang.Object get(java.lang.Object key)
throws CacheException
get(Object) on the cache, wrapping any exception in a CacheException.key - key to retrieveCacheExceptionjava.lang.Object getAllowingTimeout(java.lang.Object key)
throws CacheException
get(Object) on the cache ignoring any TimeoutException
and wrapping any other exception in a CacheException.key - key to retrieveCacheExceptionvoid put(java.lang.Object key,
java.lang.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 entryCacheExceptionvoid putAllowingTimeout(java.lang.Object key,
java.lang.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 entryCacheExceptionvoid putForExternalRead(java.lang.Object key,
java.lang.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.CacheExceptionvoid remove(java.lang.Object key)
throws CacheException
remove(Object), wrapping any exception in
a CacheException.key - key to be removedCacheExceptionvoid evict(java.lang.Object key)
throws CacheException
key - to evict.CacheExceptionvoid clear()
throws CacheException
CacheExceptionvoid stop()
void addListener(java.lang.Object listener)
listener - to be added to cache.AddressAdapter getAddress()
java.util.List<AddressAdapter> getMembers()
int size()
java.util.Map toMap()
void removeListener(java.lang.Object listener)
listener - to be removed.org.infinispan.config.Configuration getConfiguration()
void broadcastEvictAll()
<T> T withinTx(java.util.concurrent.Callable<T> c)
throws java.lang.Exception
T - c - java.lang.Exceptionorg.infinispan.Cache getCache()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.