| Package | Description |
|---|---|
| io.atomix.protocols.raft |
Core interfaces for operating on replicated state machines in the Raft cluster.
|
| io.atomix.protocols.raft.roles |
Internal classes that manage Raft server state.
|
| Modifier and Type | Method and Description |
|---|---|
RaftServer.Role |
RaftServer.getRole()
Returns the server role.
|
static RaftServer.Role |
RaftServer.Role.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftServer.Role[] |
RaftServer.Role.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaftServer.addRoleChangeListener(Consumer<RaftServer.Role> listener)
Adds a role change listener.
|
void |
RaftServer.removeRoleChangeListener(Consumer<RaftServer.Role> listener)
Removes a role change listener.
|
| Modifier and Type | Method and Description |
|---|---|
RaftServer.Role |
RaftRole.role()
Returns the server state type.
|
RaftServer.Role |
PromotableRole.role() |
RaftServer.Role |
PassiveRole.role() |
RaftServer.Role |
LeaderRole.role() |
RaftServer.Role |
InactiveRole.role() |
RaftServer.Role |
FollowerRole.role() |
RaftServer.Role |
CandidateRole.role() |
abstract RaftServer.Role |
AbstractRole.role()
Returns the Raft state represented by this state.
|
Copyright © 2013–2017. All rights reserved.