Class Configuration

java.lang.Object
io.atomix.raft.storage.system.Configuration

public class Configuration extends Object
Represents a persisted server configuration.
  • Constructor Details

    • Configuration

      public Configuration(long index, long term, long time, Collection<RaftMember> members)
  • Method Details

    • index

      public long index()
      Returns the configuration index.

      The index is the index of the ConfigurationEntry which resulted in this configuration.

      Returns:
      The configuration index.
    • term

      public long term()
      Returns the configuration term.

      The term is the term of the leader at the time the configuration change was committed.

      Returns:
      The configuration term.
    • time

      public long time()
      Returns the configuration time.
      Returns:
      The time at which the configuration was committed.
    • members

      public Collection<RaftMember> members()
      Returns the cluster membership for this configuration.
      Returns:
      The cluster membership.
    • toString

      public String toString()
      Overrides:
      toString in class Object