| Package | Description |
|---|---|
| io.atomix.protocols.raft.service |
| Modifier and Type | Method and Description |
|---|---|
<U> Commit<U> |
Commit.map(Function<T,U> transcoder)
Converts the commit from one type to another.
|
Commit<Void> |
Commit.mapToNull()
Converts the commit to a null valued commit.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
RaftServiceExecutor.apply(Commit<byte[]> commit)
Applies the given commit to the executor.
|
byte[] |
RaftService.apply(Commit<byte[]> commit)
Applies a commit to the state machine.
|
byte[] |
AbstractRaftService.apply(Commit<byte[]> commit) |
| 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.
|
Copyright © 2013–2017. All rights reserved.