| Constructor and Description |
|---|
HashMapCacheImpl()
Creates a
DistCache backed by a ConcurrentHashMap. |
| Modifier and Type | Method and Description |
|---|---|
void |
addMembers(Map caches)
|
void |
close()
See
DistCache.close(). |
void |
create(Object key,
Object value)
|
void |
createCache()
|
void |
createKey(Object key)
|
void |
destroy(Object key)
|
Object |
get(Object key)
|
String |
getCacheName()
|
Object |
getCacheTransactionManager()
|
ConcurrentHashMap |
getMap()
Returns the underlying map;
|
void |
invalidate(Object key)
|
void |
localDestroy(Object key)
|
Object |
localGet(Object key)
|
void |
localInvalidate(Object key)
|
void |
open()
See
DistCache.open(). |
void |
put(Object key,
Object value)
|
int |
size()
See
DistCache.size(). |
void |
synchPut(Object key,
Object value)
|
public HashMapCacheImpl()
DistCache backed by a ConcurrentHashMap.public ConcurrentHashMap getMap()
public void createCache()
throws DistCacheException
createCache in interface DistCacheDistCacheExceptionpublic void open()
throws DistCacheException
DistCache.open().open in interface DistCacheDistCacheExceptionpublic void close()
DistCache.close().public String getCacheName()
getCacheName in interface DistCachepublic Object getCacheTransactionManager()
getCacheTransactionManager in interface DistCachepublic void addMembers(Map caches) throws DistCacheException
addMembers in interface DistCacheDistCacheExceptionpublic void createKey(Object key) throws DistCacheException
createKey in interface DistCacheDistCacheException - if the key already exists.public void create(Object key, Object value) throws DistCacheException
create in interface DistCacheDistCacheException - if the key already exists.public void put(Object key, Object value) throws DistCacheException
put in interface DistCacheDistCacheException - if the value is null.public void synchPut(Object key, Object value) throws DistCacheException
synchPut in interface DistCacheDistCacheException - if the key does not exist.public Object get(Object key) throws DistCacheException
get in interface DistCacheDistCacheExceptionpublic void invalidate(Object key) throws DistCacheException
invalidate in interface DistCacheDistCacheExceptionpublic void localInvalidate(Object key) throws DistCacheException
localInvalidate in interface DistCacheDistCacheExceptionpublic void destroy(Object key) throws DistCacheException
destroy in interface DistCacheDistCacheExceptionpublic void localDestroy(Object key) throws DistCacheException
localDestroy in interface DistCacheDistCacheExceptionpublic int size()
throws DistCacheException
DistCache.size().size in interface DistCacheDistCacheExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.