Interface Partition

All Known Implementing Classes:
DefaultPartition

public interface Partition
  • Method Summary

    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 Details

    • 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.