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 classes/interfaces inherited from interface org.infinispan.notifications.cachelistener.event.Event |
Event.Type |
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.
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.