Package org.apache.geode.cache
Interface DynamicRegionListener
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.
- Since:
- GemFire 4.3
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterRegionCreate(RegionEvent<?, ?> event) Handles the 'after region creation' event of a dynamic region.voidafterRegionDestroy(RegionEvent<?, ?> event) Handles the 'after region destroyed' event of a dynamic region.voidbeforeRegionCreate(String parentRegionName, String regionName) Handles the 'before region creation' event of a dynamic region.voidbeforeRegionDestroy(RegionEvent<?, ?> event) Handles the 'before region destroyed' event of a dynamic region.
-
Method Details
-
beforeRegionCreate
Handles the 'before region creation' event of a dynamic region. This method is invoked before the dynamic region is created in the local VM.- Parameters:
parentRegionName- The name of the parent regionregionName- The name of the region being created
-
afterRegionCreate
Handles the 'after region creation' event of a dynamic region. This method is invoked after the dynamic region is created in the local VM.- Parameters:
event- ARegionEventdescribing the event
-
beforeRegionDestroy
Handles the 'before region destroyed' event of a dynamic region. This method is invoked before the dynamic region is destroyed in the local VM.- Parameters:
event- ARegionEventdescribing the event
-
afterRegionDestroy
Handles the 'after region destroyed' event of a dynamic region. This method is invoked after the dynamic region is destroyed in the local VM.- Parameters:
event- ARegionEventdescribing the event
-