Interface Partition


public interface Partition
Atomix partition.
  • Method Summary

    Modifier and Type Method Description
    Collection<io.atomix.cluster.MemberId> backups()
    Returns the partition's backups.
    PartitionClient getClient()
    Returns the partition client.
    PartitionId id()
    Returns the partition identifier.
    Collection<io.atomix.cluster.MemberId> members()
    Returns the collection of all members in the partition.
    io.atomix.cluster.MemberId primary()
    Returns the partition's current primary.
    long term()
    Returns the partition term.
  • Method Details

    • id

      Returns the partition identifier.
      Returns:
      the partition identifier
    • term

      long term()
      Returns the partition term.
      Returns:
      the partition term
    • members

      Collection<io.atomix.cluster.MemberId> members()
      Returns the collection of all members in the partition.
      Returns:
      the collection of all members in the partition
    • primary

      io.atomix.cluster.MemberId primary()
      Returns the partition's current primary.
      Returns:
      the partition's current primary
    • backups

      Collection<io.atomix.cluster.MemberId> backups()
      Returns the partition's backups.
      Returns:
      the partition's backups
    • getClient

      PartitionClient getClient()
      Returns the partition client.
      Returns:
      the partition client