Interface Partition

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      short master()
      Returns the master node index for this partition.
      short replica​(int num)
      Returns the replica index for this partition.
    • Method Detail

      • master

        short master()
        Returns the master node index for this partition.
        Returns:
        the master node index.
      • replica

        short replica​(int num)
        Returns the replica index for this partition.
        Parameters:
        num - number of replica.
        Returns:
        the replica node index, -1 if not set.