|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.partition.PartitionListenerAdapter
public class PartitionListenerAdapter
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
| Constructor Summary | |
|---|---|
PartitionListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
afterBucketCreated(int bucketId,
Iterable<?> keys)
Callback invoked after a bucket has been created in a member (e.g. during rebalancing). |
void |
afterBucketRemoved(int bucketId,
Iterable<?> keys)
Callback invoked after a bucket has been removed from a member (e.g. during rebalancing). |
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PartitionListenerAdapter()
| Method Detail |
|---|
public void afterPrimary(int bucketId)
PartitionListener
afterPrimary in interface PartitionListenerbucketId - id of the bucket which became primarypublic void afterRegionCreate(Region<?,?> region)
PartitionListener
afterRegionCreate in interface PartitionListenerregion - handle of the region which is created
public void afterBucketRemoved(int bucketId,
Iterable<?> keys)
PartitionListener
afterBucketRemoved in interface PartitionListenerbucketId - id of the bucket removedkeys - keys in the bucket removed
public void afterBucketCreated(int bucketId,
Iterable<?> keys)
PartitionListener
afterBucketCreated in interface PartitionListenerbucketId - id of the bucket createdkeys - keys in the bucket created
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||