public class PartitionListenerAdapter extends Object implements 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.
Constructor and Description |
---|
PartitionListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterBucketCreated(int bucketId,
Iterable<?> keys)
Callback invoked after a bucket has been created in a member (e.g.
|
void |
afterBucketRemoved(int bucketId,
Iterable<?> keys)
Callback invoked after a bucket has been removed from a member (e.g.
|
void |
afterPrimary(int bucketId)
Callback invoked when any bucket in a partitioned region becomes primary
|
void |
afterRegionCreate(Region<?,?> region)
Callback invoked when a partition region is created
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterSecondary
public void afterPrimary(int bucketId)
PartitionListener
afterPrimary
in interface PartitionListener
bucketId
- id of the bucket which became primarypublic void afterRegionCreate(Region<?,?> region)
PartitionListener
afterRegionCreate
in interface PartitionListener
region
- handle of the region which is createdpublic void afterBucketRemoved(int bucketId, Iterable<?> keys)
PartitionListener
afterBucketRemoved
in interface PartitionListener
bucketId
- id of the bucket removedkeys
- keys in the bucket removedpublic void afterBucketCreated(int bucketId, Iterable<?> keys)
PartitionListener
afterBucketCreated
in interface PartitionListener
bucketId
- id of the bucket createdkeys
- keys in the bucket created