Interface DataRehashedEvent<K,​V>

  • All Superinterfaces:
    Event<K,​V>

    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 Detail

      • getMembersAtStart

        Collection<org.infinispan.remoting.transport.Address> getMembersAtStart()
        Returns:
        Retrieves the list of members before rehashing started.
      • getMembersAtEnd

        Collection<org.infinispan.remoting.transport.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.
      • getUnionConsistentHash

        @Deprecated
        ConsistentHash getUnionConsistentHash()
        Deprecated.
        Since 9.0
        Returns:
        The union of the current and future consistent hashes.
      • getNewTopologyId

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