public interface DynamicRegionListener
DynamicRegionListener
is an interface that can be implemented to handle dynamic
region-related events.
The methods on a DynamicRegionListener
are invoked synchronously. If the listener
method takes a long time to execute then it will cause the operation that caused it to be invoked
to take a long time.
Note: It is possible to receive duplicate create events when the DynamicRegionFactory goes active due to Cache creation.
Modifier and Type | Method and Description |
---|---|
void |
afterRegionCreate(RegionEvent<?,?> event)
Handles the 'after region creation' event of a dynamic region.
|
void |
afterRegionDestroy(RegionEvent<?,?> event)
Handles the 'after region destroyed' event of a dynamic region.
|
void |
beforeRegionCreate(String parentRegionName,
String regionName)
Handles the 'before region creation' event of a dynamic region.
|
void |
beforeRegionDestroy(RegionEvent<?,?> event)
Handles the 'before region destroyed' event of a dynamic region.
|
void beforeRegionCreate(String parentRegionName, String regionName)
parentRegionName
- The name of the parent regionregionName
- The name of the region being createdvoid afterRegionCreate(RegionEvent<?,?> event)
event
- A RegionEvent
describing the eventvoid beforeRegionDestroy(RegionEvent<?,?> event)
event
- A RegionEvent
describing the eventvoid afterRegionDestroy(RegionEvent<?,?> event)
event
- A RegionEvent
describing the event