| Constructor and Description |
|---|
GemFireCacheTestImpl()
Creates a
DistCache backed by a Region. |
| 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()
|
com.gemstone.gemfire.cache.Region |
getRegion()
Returns the
Region that underlies this
GemFireCacheImpl. |
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)
|
void |
registerInterest(Object keyOrList,
boolean durable)
Registers interest in the key or list of keys using the result policy
configured via
GemFireCachePrms.interestResultPolicy. |
void |
registerInterestRegex(String regex,
boolean durable)
Registers interest in the key or list of keys using the specified regular
expression and the result policy configured via
GemFireCachePrms.interestResultPolicy. |
int |
size()
See
DistCache.size(). |
void |
synchPut(Object key,
Object value)
|
public GemFireCacheTestImpl()
DistCache backed by a Region.public void createCache()
throws DistCacheException
createCache in interface DistCacheDistCacheExceptionpublic void open()
throws DistCacheException
DistCache.open().open in interface DistCacheDistCacheExceptionpublic void close()
throws DistCacheException
DistCache.close().close in interface DistCacheDistCacheExceptionpublic 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 DistCacheDistCacheExceptionpublic com.gemstone.gemfire.cache.Region getRegion()
Region that underlies this
GemFireCacheImpl.public void registerInterest(Object keyOrList, boolean durable)
GemFireCachePrms.interestResultPolicy.public void registerInterestRegex(String regex, boolean durable)
GemFireCachePrms.interestResultPolicy.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.