| Package | Description |
|---|---|
| io.atomix.protocols.raft |
Core interfaces for operating on replicated state machines in the Raft cluster.
|
| io.atomix.protocols.raft.cluster |
Interfaces for managing and interacting with the Raft cluster.
|
| Modifier and Type | Method and Description |
|---|---|
RaftServer.Builder |
RaftServer.Builder.withType(RaftMember.Type type)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RaftMember.Type |
RaftMember.getType()
Returns the member type.
|
static RaftMember.Type |
RaftMember.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftMember.Type[] |
RaftMember.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
RaftMember.demote(RaftMember.Type type)
Demotes the member to the given type.
|
CompletableFuture<Void> |
RaftMember.promote(RaftMember.Type type)
Promotes the member to the given type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaftMember.addTypeChangeListener(Consumer<RaftMember.Type> listener)
Adds a listener to be called when the member's type changes.
|
void |
RaftMember.removeTypeChangeListener(Consumer<RaftMember.Type> listener)
Removes a type change listener from the member.
|
Copyright © 2013–2017. All rights reserved.