|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AttributesMutator
Supports modification of certain region attributes after the region has been
created. It is recommended that the attributes be completely initialized
using an AttributesFactory before creating the region instead of
using an AttributesMutator after region creation. This will
avoid a potential performance penalty due to the additional
network traffic.
The setter methods all return the previous value of the attribute.
Region.getAttributesMutator(),
RegionAttributes,
AttributesFactory| Method Summary | |
|---|---|
void |
addCacheListener(CacheListener aListener)
Adds a cache listener to the end of the list of cache listeners on this region. |
EvictionAttributesMutator |
getEvictionAttributesMutator()
Allows changing the eviction controller attributes for the region. |
Region |
getRegion()
Returns the Region whose attributes this mutator affects. |
void |
initCacheListeners(CacheListener[] newListeners)
Removes all cache listeners, calling CacheCallback.close() on each of them, and then adds each listener in the specified array. |
void |
removeCacheListener(CacheListener aListener)
Removes a cache listener from the list of cache listeners on this region. |
CacheListener |
setCacheListener(CacheListener aListener)
Deprecated. as of GemFire 5.0, use addCacheListener(com.gemstone.gemfire.cache.CacheListener) or initCacheListeners(com.gemstone.gemfire.cache.CacheListener[]) instead. |
CacheLoader |
setCacheLoader(CacheLoader cacheLoader)
Changes the cache loader for the region. |
CacheWriter |
setCacheWriter(CacheWriter cacheWriter)
Changes the cache writer for the region. |
ExpirationAttributes |
setEntryIdleTimeout(ExpirationAttributes idleTimeout)
Changes the idleTimeout expiration attributes for values in the region. |
ExpirationAttributes |
setEntryTimeToLive(ExpirationAttributes timeToLive)
Changes the timeToLive expiration attributes for values in this region. |
ExpirationAttributes |
setRegionIdleTimeout(ExpirationAttributes idleTimeout)
Changes the idleTimeout expiration attributes for the region as a whole. |
ExpirationAttributes |
setRegionTimeToLive(ExpirationAttributes timeToLive)
Changes the timeToLive expiration attributes for the region as a whole |
| Method Detail |
|---|
Region getRegion()
ExpirationAttributes setRegionTimeToLive(ExpirationAttributes timeToLive)
timeToLive - the expiration attributes for the region timeToLive
IllegalArgumentException - if timeToLive is null or if the
ExpirationAction is LOCAL_INVALIDATE and the region is
replicated
IllegalStateException - if statistics are disabled for this region.ExpirationAttributes setRegionIdleTimeout(ExpirationAttributes idleTimeout)
CacheStatistics.getLastAccessedTime() for the region.
idleTimeout - the ExpirationAttributes for this region idleTimeout
IllegalArgumentException - if idleTimeout is null or if the
ExpirationAction is LOCAL_INVALIDATE and the region is
replicated
IllegalStateException - if statistics are disabled for this region.ExpirationAttributes setEntryTimeToLive(ExpirationAttributes timeToLive)
timeToLive - the timeToLive expiration attributes for entries
IllegalArgumentException - if timeToLive is null or if the
ExpirationAction is LOCAL_DESTROY and the region is replicated or if
the ExpirationAction is LOCAL_INVALIDATE and the region is
replicated
IllegalStateException - if statistics are disabled for this region.ExpirationAttributes setEntryIdleTimeout(ExpirationAttributes idleTimeout)
idleTimeout - the idleTimeout expiration attributes for entries
IllegalArgumentException - if idleTimeout is null or if the
ExpirationAction is LOCAL_DESTROY and the region is
replicated
or if the the ExpirationAction is LOCAL_INVALIDATE and the region is
replicated
IllegalStateException - if statistics are disabled for this region.AttributesFactory.setStatisticsEnabled(boolean)CacheListener setCacheListener(CacheListener aListener)
addCacheListener(com.gemstone.gemfire.cache.CacheListener) or initCacheListeners(com.gemstone.gemfire.cache.CacheListener[]) instead.
CacheCallback.close() on each of them.
aListener - a user defined cache listener
IllegalStateException - if more than one cache listener has already been addedvoid addCacheListener(CacheListener aListener)
aListener - the user defined cache listener to add to the region.
IllegalArgumentException - if aListener is nullvoid removeCacheListener(CacheListener aListener)
CacheCallback.close() will
be called on it; otherwise does nothing.
aListener - the cache listener to remove from the region.
IllegalArgumentException - if aListener is nullvoid initCacheListeners(CacheListener[] newListeners)
CacheCallback.close() on each of them, and then adds each listener in the specified array.
newListeners - a possibly null or empty array of listeners to add to this region.
IllegalArgumentException - if the newListeners array has a null elementCacheWriter setCacheWriter(CacheWriter cacheWriter)
cacheWriter - the cache writer
CacheLoader setCacheLoader(CacheLoader cacheLoader)
cacheLoader - the cache loader
EvictionAttributesMutator getEvictionAttributesMutator()
EvictionAttributesMutator used to change the EvictionAttributes
|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||