public interface DistCache
| Modifier and Type | Method and Description |
|---|---|
void |
addMembers(Map caches)
Notifies this member about other members of the distributed cache.
|
void |
close()
Closes the local cache.
|
void |
create(Object key,
Object value)
Puts the specified key and value into the cache.
|
void |
createCache()
Creates the local cache (with no regions).
|
void |
createKey(Object key)
Puts the specified key, with no value, into the cache.
|
void |
destroy(Object key)
Removes the specified key and its value from the cache.
|
Object |
get(Object key)
Gets the value with the specified key from the cache.
|
String |
getCacheName()
Gets the name of this member of the distributed cache.
|
Object |
getCacheTransactionManager()
Gets the CacheTransactionManager of the distributed cache.
|
void |
invalidate(Object key)
Removes the value from the cache, but keeps the key.
|
void |
localDestroy(Object key)
Removes the specified key and its value from the local cache.
|
Object |
localGet(Object key)
Gets the value with the specified key from the local cache.
|
void |
localInvalidate(Object key)
Removes the value from the local cache, but keeps the key.
|
void |
open()
Opens the local cache.
|
void |
put(Object key,
Object value)
Puts the specified value into the cache at the specified key.
|
int |
size()
Returns the number of entries in the local cache.
|
void |
synchPut(Object key,
Object value)
Puts the specified value in the cache at the specified key
under the protection of a distributed lock.
|
void createCache()
throws DistCacheException
DistCacheExceptionvoid open() throws DistCacheException
DistCacheExceptionvoid close()
throws DistCacheException
DistCacheExceptionString getCacheName()
Object getCacheTransactionManager()
void addMembers(Map caches) throws DistCacheException
DistCacheExceptionvoid createKey(Object key) throws DistCacheException
DistCacheException - if the key already exists.void create(Object key, Object value) throws DistCacheException
DistCacheException - if the key already exists.void put(Object key, Object value) throws DistCacheException
DistCacheException - if the value is null.void synchPut(Object key, Object value) throws DistCacheException
DistCacheException - if the key does not exist.Object get(Object key) throws DistCacheException
DistCacheExceptionObject localGet(Object key) throws DistCacheException
DistCacheExceptionvoid invalidate(Object key) throws DistCacheException
DistCacheExceptionvoid localInvalidate(Object key) throws DistCacheException
DistCacheExceptionvoid destroy(Object key) throws DistCacheException
DistCacheExceptionvoid localDestroy(Object key) throws DistCacheException
DistCacheExceptionint size() throws DistCacheException
DistCacheExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.