| Package | Description |
|---|---|
| io.atomix.protocols.raft |
Provides classes and interfaces for managing Raft clients and servers.
|
| Modifier and Type | Method and Description |
|---|---|
RaftServer.Role |
RaftServer.getRole()
Returns the server role.
|
static RaftServer.Role |
RaftServer.Role.valueOf(java.lang.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(java.util.function.Consumer<RaftServer.Role> listener)
Adds a role change listener.
|
void |
RaftServer.removeRoleChangeListener(java.util.function.Consumer<RaftServer.Role> listener)
Removes a role change listener.
|
Copyright © 2013-2019. All Rights Reserved.