| Package | Description |
|---|---|
| io.atomix.copycat.server |
Standalone, feature-complete implementation of the Raft consensus algorithm.
|
| io.atomix.copycat.server.cluster |
Interfaces for managing and interacting with the Copycat cluster.
|
| Modifier and Type | Method and Description |
|---|---|
CopycatServer.Builder |
CopycatServer.Builder.withType(Member.Type type)
Sets the initial server member type.
|
| Modifier and Type | Method and Description |
|---|---|
Member.Type |
Member.type()
Returns the member type.
|
static Member.Type |
Member.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Member.Type[] |
Member.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Listener<Member.Type> |
Member.onTypeChange(Consumer<Member.Type> callback)
Registers a callback to be called when the member's type changes.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
Member.demote(Member.Type type)
Demotes the member to the given type.
|
CompletableFuture<Void> |
Member.promote(Member.Type type)
Promotes the member to the given type.
|
| Modifier and Type | Method and Description |
|---|---|
Listener<Member.Type> |
Member.onTypeChange(Consumer<Member.Type> callback)
Registers a callback to be called when the member's type changes.
|
Copyright © 2013–2016. All rights reserved.