public interface RegionMembershipListener<K,V> extends CacheListener<K,V>
Instead of implementing this interface it is recommended that you extend the
RegionMembershipListenerAdapter
class.
AttributesFactory.addCacheListener(org.apache.geode.cache.CacheListener<K, V>)
,
AttributesFactory.initCacheListeners(org.apache.geode.cache.CacheListener<K, V>[])
,
RegionAttributes.getCacheListeners()
,
AttributesMutator.addCacheListener(org.apache.geode.cache.CacheListener<K, V>)
,
AttributesMutator.removeCacheListener(org.apache.geode.cache.CacheListener<K, V>)
,
AttributesMutator.initCacheListeners(org.apache.geode.cache.CacheListener<K, V>[])
Modifier and Type | Method and Description |
---|---|
void |
afterRemoteRegionCrash(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.
|
void |
afterRemoteRegionCreate(RegionEvent<K,V> event)
Invoked when another member has created the distributed region this listener is on.
|
void |
afterRemoteRegionDeparture(RegionEvent<K,V> event)
Invoked when another member's distributed region is no longer available to this cache due to
normal operations.
|
void |
initialMembers(Region<K,V> region,
DistributedMember[] initialMembers)
Invoked when the listener is first initialized and is given the set of members that have the
region created at that time.
|
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, afterUpdate
close
init, initialize
void initialMembers(Region<K,V> region, DistributedMember[] initialMembers)
AttributesMutator
.
region
- the Region
the listener is registered oninitialMembers
- an array of the other members that have this region at the time this
listener is added.void afterRemoteRegionCreate(RegionEvent<K,V> event)
event
- the event from the member whose region was created.void afterRemoteRegionDeparture(RegionEvent<K,V> event)
event
- the event from the member whose region is no longer available.void afterRemoteRegionCrash(RegionEvent<K,V> event)
event
- the event from the member whose region is no longer available.