public interface PrimitiveProxyExecutor
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(Consumer<PrimitiveEvent> listener)
Adds a session event listener.
|
void |
addStateChangeListener(Consumer<PrimitiveProxy.State> listener)
Registers a session state change listener.
|
default CompletableFuture<byte[]> |
execute(OperationId operationId)
Executes an operation to the Raft cluster.
|
default CompletableFuture<byte[]> |
execute(OperationId operationId,
byte[] operation)
Executes an operation to the Raft cluster.
|
CompletableFuture<byte[]> |
execute(PrimitiveOperation operation)
Executes an operation to the cluster.
|
void |
removeEventListener(Consumer<PrimitiveEvent> listener)
Removes a session event listener.
|
void |
removeStateChangeListener(Consumer<PrimitiveProxy.State> listener)
Removes a state change listener.
|
void addStateChangeListener(Consumer<PrimitiveProxy.State> listener)
listener - The callback to call when the session state changes.void removeStateChangeListener(Consumer<PrimitiveProxy.State> listener)
listener - the state change listener to removedefault CompletableFuture<byte[]> execute(OperationId operationId)
operationId - the operation identifierNullPointerException - if command is nulldefault CompletableFuture<byte[]> execute(OperationId operationId, byte[] operation)
operationId - the operation identifieroperation - the operation to executeNullPointerException - if command is nullCompletableFuture<byte[]> execute(PrimitiveOperation operation)
operation - the operation to executeNullPointerException - if operation is nullvoid addEventListener(Consumer<PrimitiveEvent> listener)
listener - the event listener to addvoid removeEventListener(Consumer<PrimitiveEvent> listener)
listener - the event listener to removeCopyright © 2013–2018. All rights reserved.