Package io.atomix.raft.storage.system
Class Configuration
java.lang.Object
io.atomix.raft.storage.system.Configuration
Represents a persisted server configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(long index, long term, long time, Collection<RaftMember> members) -
Method Summary
-
Constructor Details
-
Configuration
-
-
Method Details
-
index
public long index()Returns the configuration index.The index is the index of the
ConfigurationEntrywhich 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
Returns the cluster membership for this configuration.- Returns:
- The cluster membership.
-
toString
-