| Package | Description |
|---|---|
| io.atomix.protocols.raft |
Core interfaces for operating on replicated state machines in the Raft cluster.
|
| io.atomix.protocols.raft.protocol |
RaftRequest and RaftResponse
implementations for all client-server communication. |
| Modifier and Type | Method and Description |
|---|---|
RaftError.Type |
RaftException.getType()
Returns the exception type.
|
RaftError.Type |
RaftError.type()
Returns the error type.
|
static RaftError.Type |
RaftError.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftError.Type[] |
RaftError.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
OperationFailure(RaftError.Type type,
String message,
Object... args) |
RaftError(RaftError.Type type,
String message) |
| Modifier and Type | Method and Description |
|---|---|
default T |
RaftResponse.Builder.withError(RaftError.Type type)
Sets the response error.
|
default T |
RaftResponse.Builder.withError(RaftError.Type type,
String message)
Sets the response error.
|
Copyright © 2013–2017. All rights reserved.