Package org.apache.geode.cache.partition
Class PartitionListenerAdapter
java.lang.Object
org.apache.geode.cache.partition.PartitionListenerAdapter
- All Implemented Interfaces:
PartitionListener
Utility class that implements all methods in PartitionListener with empty
implementations. Applications can subclass this class and only override the methods of interest.
Subclasses declared in a Cache XML file, it must also implement
Declarable
Note : Please request help on the Geode developer mailing list (dev@geode.apache.org) before using these APIs.
- Since:
- GemFire 6.6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterBucketCreated(int bucketId, Iterable<?> keys) Callback invoked after a bucket has been created in a member (e.g.voidafterBucketRemoved(int bucketId, Iterable<?> keys) Callback invoked after a bucket has been removed from a member (e.g.voidafterPrimary(int bucketId) Callback invoked when any bucket in a partitioned region becomes primaryvoidafterRegionCreate(Region<?, ?> region) Callback invoked when a partition region is createdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.geode.cache.partition.PartitionListener
afterSecondary
-
Constructor Details
-
PartitionListenerAdapter
public PartitionListenerAdapter()
-
-
Method Details
-
afterPrimary
public void afterPrimary(int bucketId) Description copied from interface:PartitionListenerCallback invoked when any bucket in a partitioned region becomes primary- Specified by:
afterPrimaryin interfacePartitionListener- Parameters:
bucketId- id of the bucket which became primary
-
afterRegionCreate
Description copied from interface:PartitionListenerCallback invoked when a partition region is created- Specified by:
afterRegionCreatein interfacePartitionListener- Parameters:
region- handle of the region which is created
-
afterBucketRemoved
Description copied from interface:PartitionListenerCallback invoked after a bucket has been removed from a member (e.g. during rebalancing). This API is useful for maintaining external data structures by bucket id or key.- Specified by:
afterBucketRemovedin interfacePartitionListener- Parameters:
bucketId- id of the bucket removedkeys- keys in the bucket removed
-
afterBucketCreated
Description copied from interface:PartitionListenerCallback invoked after a bucket has been created in a member (e.g. during rebalancing). This API is useful for maintaining external data structures by bucket id or key. Note that this API is invoked after the initial image has been completed so creates and destroys may occur in the keys. It is best to use this API during periods of no cache activity.- Specified by:
afterBucketCreatedin interfacePartitionListener- Parameters:
bucketId- id of the bucket createdkeys- keys in the bucket created
-