Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.notifications.cachelistener.event
Interface DataRehashedEvent<K,V>

All Superinterfaces:
Event<K,V>
All Known Implementing Classes:
EventImpl

public interface DataRehashedEvent<K,V>
extends Event<K,V>

An event passed in to methods annotated with DataRehashed.

Note that the getConsistentHashAtStart() and getConsistentHashAtEnd() may return different value in the "pre" event notification and in the "post" event notification. For instance, the end CH in the "pre" notification may be a union of the start and end CHs in the "post" notification.

The result of the getNewTopologyId() method is not guaranteed to be the same for the "pre" and the "post" notification, either. However, the "post" value is guaranteed to be greater than or equal to the "pre" value.

Since:
5.0
Author:
Manik Surtani, Dan Berindei

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachelistener.event.Event
Event.Type
 
Method Summary
 ConsistentHash getConsistentHashAtEnd()
           
 ConsistentHash getConsistentHashAtStart()
           
 Collection<Address> getMembersAtEnd()
           
 Collection<Address> getMembersAtStart()
           
 int getNewTopologyId()
           
 
Methods inherited from interface org.infinispan.notifications.cachelistener.event.Event
getCache, getType, isPre
 

Method Detail

getMembersAtStart

Collection<Address> getMembersAtStart()
Returns:
Retrieves the list of members before rehashing started.

getMembersAtEnd

Collection<Address> getMembersAtEnd()
Returns:
Retrieves the list of members after rehashing ended.

getConsistentHashAtStart

ConsistentHash getConsistentHashAtStart()
Returns:
The unbalanced consistent hash before the rebalance started.

getConsistentHashAtEnd

ConsistentHash getConsistentHashAtEnd()
Returns:
The consistent hash at the end of the rebalance.

getNewTopologyId

int getNewTopologyId()
Returns:
Retrieves the new topology id after rehashing was triggered.

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.