com.gemstone.gemfire.cache.util
Class RegionRoleListenerAdapter<K,V>
java.lang.Object
com.gemstone.gemfire.cache.util.CacheListenerAdapter<K,V>
com.gemstone.gemfire.cache.util.RegionMembershipListenerAdapter<K,V>
com.gemstone.gemfire.cache.util.RegionRoleListenerAdapter<K,V>
- All Implemented Interfaces:
- CacheCallback, CacheListener<K,V>, RegionMembershipListener<K,V>, RegionRoleListener<K,V>
public abstract class RegionRoleListenerAdapter<K,V>
- extends RegionMembershipListenerAdapter<K,V>
- implements RegionRoleListener<K,V>
Utility class that implements all methods in
RegionRoleListener with empty implementations.
Applications can subclass this class and only override the methods for
the events of interest.
- Since:
- 5.0
|
Method Summary |
void |
afterRoleGain(RoleEvent<K,V> event)
Invoked when a required role has returned to the distributed system
after being absent. |
void |
afterRoleLoss(RoleEvent<K,V> event)
Invoked when a required role is no longer available in the distributed
system. |
RegionRoleListenerAdapter
public RegionRoleListenerAdapter()
afterRoleGain
public void afterRoleGain(RoleEvent<K,V> event)
- Description copied from interface:
RegionRoleListener
- Invoked when a required role has returned to the distributed system
after being absent.
- Specified by:
afterRoleGain in interface RegionRoleListener<K,V>
- Parameters:
event - describes the member that fills the required role.
afterRoleLoss
public void afterRoleLoss(RoleEvent<K,V> event)
- Description copied from interface:
RegionRoleListener
- Invoked when a required role is no longer available in the distributed
system.
- Specified by:
afterRoleLoss in interface RegionRoleListener<K,V>
- Parameters:
event - describes the member that last filled the required role.
Copyright © 1997-2012 VMware, Inc. All rights reserved.