Interface Partition

All Known Implementing Classes:
DefaultPartition

public interface Partition
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the master node index for this partition.
    int
    replica(int num)
    Returns the replica index for this partition.
  • Method Details

    • primary

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

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