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.

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
  • Method Details

    • 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 current consistent hash that was installed prior to the rehash. It is used both for reading and writing before the rebalance.
    • getConsistentHashAtEnd

      ConsistentHash getConsistentHashAtEnd()
      Returns:
      The consistent hash that will be installed after the rebalance. It will be used both for reading and writing once the rebalance is complete.
    • getNewTopologyId

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