GemFire 5.8

com.gemstone.gemfire.cache.util
Class RegionRoleListenerAdapter

java.lang.Object
  extended by com.gemstone.gemfire.cache.util.CacheListenerAdapter
      extended by com.gemstone.gemfire.cache.util.RegionMembershipListenerAdapter
          extended by com.gemstone.gemfire.cache.util.RegionRoleListenerAdapter
All Implemented Interfaces:
CacheCallback, CacheListener, RegionMembershipListener, RegionRoleListener

public abstract class RegionRoleListenerAdapter
extends RegionMembershipListenerAdapter
implements RegionRoleListener

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

Constructor Summary
RegionRoleListenerAdapter()
           
 
Method Summary
 void afterRoleGain(RoleEvent event)
          Invoked when a required role has returned to the distributed system after being absent.
 void afterRoleLoss(RoleEvent event)
          Invoked when a required role is no longer available in the distributed system.
 
Methods inherited from class com.gemstone.gemfire.cache.util.RegionMembershipListenerAdapter
afterRemoteRegionCrash, afterRemoteRegionCreate, afterRemoteRegionDeparture, initialMembers
 
Methods inherited from class com.gemstone.gemfire.cache.util.CacheListenerAdapter
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, afterUpdate, close
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.gemstone.gemfire.cache.CacheListener
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, afterUpdate
 
Methods inherited from interface com.gemstone.gemfire.cache.CacheCallback
close
 

Constructor Detail

RegionRoleListenerAdapter

public RegionRoleListenerAdapter()
Method Detail

afterRoleGain

public void afterRoleGain(RoleEvent 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
Parameters:
event - describes the member that fills the required role.

afterRoleLoss

public void afterRoleLoss(RoleEvent 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
Parameters:
event - describes the member that last filled the required role.

GemFire 5.8

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.