| Package | Description |
|---|---|
| io.atomix.protocols.raft.operation | |
| io.atomix.protocols.raft.proxy |
Facilitates modification of a Raft state machine via proxy.
|
| io.atomix.protocols.raft.service |
| Modifier and Type | Field and Description |
|---|---|
static OperationId |
OperationId.NOOP |
| Modifier and Type | Method and Description |
|---|---|
static OperationId |
OperationId.command(String id)
Returns a new command operation identifier.
|
static OperationId |
OperationId.from(String id,
OperationType type)
Returns a new operation identifier.
|
OperationId |
RaftOperation.id()
Returns the operation identifier.
|
static OperationId |
OperationId.query(String id)
Returns a new query operation identifier.
|
| Constructor and Description |
|---|
RaftOperation(OperationId id,
byte[] value) |
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<byte[]> |
RaftProxyExecutor.execute(OperationId operationId)
Executes an operation to the Raft cluster.
|
default CompletableFuture<byte[]> |
RaftProxyExecutor.execute(OperationId operationId,
byte[] operation)
Executes an operation to the Raft cluster.
|
default CompletableFuture<Void> |
RaftProxy.invoke(OperationId operationId)
Submits an empty operation to the Raft cluster, awaiting a void result.
|
default <R> CompletableFuture<R> |
RaftProxy.invoke(OperationId operationId,
Function<byte[],R> decoder)
Submits an empty operation to the Raft cluster.
|
default <T> CompletableFuture<Void> |
RaftProxy.invoke(OperationId operationId,
Function<T,byte[]> encoder,
T operation)
Submits an operation to the Raft cluster.
|
default <T,R> CompletableFuture<R> |
RaftProxy.invoke(OperationId operationId,
Function<T,byte[]> encoder,
T operation,
Function<byte[],R> decoder)
Submits an operation to the Raft cluster.
|
| Modifier and Type | Method and Description |
|---|---|
OperationId |
Commit.operation()
Returns the operation identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RaftServiceExecutor.handle(OperationId operationId,
Function<Commit<byte[]>,byte[]> callback)
Registers a operation callback.
|
default void |
RaftServiceExecutor.register(OperationId operationId,
Consumer<Commit<Void>> callback)
Registers a operation callback.
|
default <T> void |
RaftServiceExecutor.register(OperationId operationId,
Function<byte[],T> decoder,
Consumer<Commit<T>> callback)
Registers a operation callback.
|
default <T,R> void |
RaftServiceExecutor.register(OperationId operationId,
Function<byte[],T> decoder,
Function<Commit<T>,R> callback,
Function<R,byte[]> encoder)
Registers an operation callback.
|
default <R> void |
RaftServiceExecutor.register(OperationId operationId,
Function<Commit<Void>,R> callback,
Function<R,byte[]> encoder)
Registers a operation callback.
|
default void |
RaftServiceExecutor.register(OperationId operationId,
Runnable callback)
Registers a operation callback.
|
default <R> void |
RaftServiceExecutor.register(OperationId operationId,
Supplier<R> callback,
Function<R,byte[]> encoder)
Registers a no argument operation callback.
|
Copyright © 2013–2017. All rights reserved.