GemFire 5.5.1

com.gemstone.gemfire.cache
Interface RegionRoleListener

All Superinterfaces:
CacheCallback, CacheListener
All Known Implementing Classes:
RegionRoleListenerAdapter

public interface RegionRoleListener
extends CacheListener

A listener that can be implemented to handle region reliability membership events. These are membership events that are specific to loss or gain of required roles as defined by the region's MembershipAttributes.

Instead of implementing this interface it is recommended that you extend the RegionRoleListenerAdapter class.

Since:
5.0
See Also:
AttributesFactory.setCacheListener(com.gemstone.gemfire.cache.CacheListener), RegionAttributes.getCacheListener(), AttributesMutator.setCacheListener(com.gemstone.gemfire.cache.CacheListener)

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 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
 

Method Detail

afterRoleGain

void afterRoleGain(RoleEvent event)
Invoked when a required role has returned to the distributed system after being absent.

Parameters:
event - describes the member that fills the required role.

afterRoleLoss

void afterRoleLoss(RoleEvent event)
Invoked when a required role is no longer available in the distributed system.

Parameters:
event - describes the member that last filled the required role.

GemFire 5.5.1

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