public class RegionConfigurationCacheListener extends CacheListenerAdapter<java.lang.String,RegionConfiguration> implements Declarable
Constructor and Description |
---|
RegionConfigurationCacheListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterCreate(EntryEvent<java.lang.String,RegionConfiguration> event)
Handles the event of new key being added to a region.
|
void |
afterRegionCreate(RegionEvent<java.lang.String,RegionConfiguration> event)
Handles the event of a region being created.
|
void |
afterUpdate(EntryEvent<java.lang.String,RegionConfiguration> event)
Handles the event of an entry's value being modified in a region.
|
void |
init(java.util.Properties p)
Initializes a user-defined object using the given properties.
|
afterDestroy, afterInvalidate, afterRegionClear, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, close
public void afterCreate(EntryEvent<java.lang.String,RegionConfiguration> event)
CacheListener
afterCreate
in interface CacheListener<java.lang.String,RegionConfiguration>
afterCreate
in class CacheListenerAdapter<java.lang.String,RegionConfiguration>
event
- the EntryEventRegion.create(Object, Object)
,
Region.put(Object, Object)
,
Region.get(Object)
public void afterUpdate(EntryEvent<java.lang.String,RegionConfiguration> event)
CacheListener
afterUpdate
in interface CacheListener<java.lang.String,RegionConfiguration>
afterUpdate
in class CacheListenerAdapter<java.lang.String,RegionConfiguration>
event
- the EntryEventRegion.put(Object, Object)
public void afterRegionCreate(RegionEvent<java.lang.String,RegionConfiguration> event)
CacheListener
Note that this method is only called
for creates done in the local vm. To be notified of creates done in remote
vms use RegionMembershipListener.afterRemoteRegionCreate(org.apache.geode.cache.RegionEvent<K, V>)
.
afterRegionCreate
in interface CacheListener<java.lang.String,RegionConfiguration>
afterRegionCreate
in class CacheListenerAdapter<java.lang.String,RegionConfiguration>
event
- the RegionEventCache.createRegion(java.lang.String, org.apache.geode.cache.RegionAttributes<K, V>)
,
Region.createSubregion(java.lang.String, org.apache.geode.cache.RegionAttributes<SK, SV>)
public void init(java.util.Properties p)
Declarable
Cache
initialization to fail.init
in interface Declarable
p
- Contains the parameters declared in the declarative xml
file.