Package org.apache.geode.cache.util
Class RegionMembershipListenerAdapter<K,V>
java.lang.Object
org.apache.geode.cache.util.CacheListenerAdapter<K,V>
org.apache.geode.cache.util.RegionMembershipListenerAdapter<K,V>
- All Implemented Interfaces:
CacheCallback,CacheListener<K,,V> Declarable,RegionMembershipListener<K,V>
- Direct Known Subclasses:
RegionRoleListenerAdapter
public abstract class RegionMembershipListenerAdapter<K,V>
extends CacheListenerAdapter<K,V>
implements RegionMembershipListener<K,V>
Utility class that implements all methods in
RegionMembershipListener with empty
implementations. Applications can subclass this class and only override the methods for the
events of interest.- Since:
- GemFire 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRemoteRegionCrash(RegionEvent<K, V> event) Invoked when another member's distributed region is no longer available to this cache because the member has crashed or is no longer reachable on the network.voidafterRemoteRegionCreate(RegionEvent<K, V> event) Invoked when another member has created the distributed region this listener is on.voidafterRemoteRegionDeparture(RegionEvent<K, V> event) Invoked when another member's distributed region is no longer available to this cache due to normal operations.voidinitialMembers(Region<K, V> r, DistributedMember[] initialMembers) Invoked when the listener is first initialized and is given the set of members that have the region created at that time.Methods inherited from class org.apache.geode.cache.util.CacheListenerAdapter
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, afterUpdate, closeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.geode.cache.CacheCallback
closeMethods inherited from interface org.apache.geode.cache.CacheListener
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, afterUpdateMethods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Constructor Details
-
RegionMembershipListenerAdapter
public RegionMembershipListenerAdapter()
-
-
Method Details
-
initialMembers
Description copied from interface:RegionMembershipListenerInvoked when the listener is first initialized and is given the set of members that have the region created at that time. The listener is initialized when:- the region is created with an already added listener
- a listener is added using the
AttributesMutator.
- Specified by:
initialMembersin interfaceRegionMembershipListener<K,V> - Parameters:
r- theRegionthe listener is registered oninitialMembers- an array of the other members that have this region at the time this listener is added.
-
afterRemoteRegionCreate
Description copied from interface:RegionMembershipListenerInvoked when another member has created the distributed region this listener is on.- Specified by:
afterRemoteRegionCreatein interfaceRegionMembershipListener<K,V> - Parameters:
event- the event from the member whose region was created.
-
afterRemoteRegionDeparture
Description copied from interface:RegionMembershipListenerInvoked when another member's distributed region is no longer available to this cache due to normal operations. This can be triggered by one of the following methods: This differs from afterRemoteRegionCrash notification in that the departed member performed an action either to remove its region or to close its region or cache.- Specified by:
afterRemoteRegionDeparturein interfaceRegionMembershipListener<K,V> - Parameters:
event- the event from the member whose region is no longer available.
-
afterRemoteRegionCrash
Description copied from interface:RegionMembershipListenerInvoked when another member's distributed region is no longer available to this cache because the member has crashed or is no longer reachable on the network.- Specified by:
afterRemoteRegionCrashin interfaceRegionMembershipListener<K,V> - Parameters:
event- the event from the member whose region is no longer available.
-