| Package | Description |
|---|---|
| io.atomix.primitive.operation | |
| io.atomix.primitive.proxy | |
| io.atomix.primitive.service |
| 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 |
PrimitiveOperation.id()
Returns the operation identifier.
|
static OperationId |
OperationId.query(String id)
Returns a new query operation identifier.
|
static OperationId |
OperationId.simplify(OperationId operationId)
Simplifies the given operation identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationId |
OperationId.simplify(OperationId operationId)
Simplifies the given operation identifier.
|
| Constructor and Description |
|---|
PrimitiveOperation(OperationId id,
byte[] value) |
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<byte[]> |
PrimitiveProxyExecutor.execute(OperationId operationId)
Executes an operation to the Raft cluster.
|
default CompletableFuture<byte[]> |
PrimitiveProxyExecutor.execute(OperationId operationId,
byte[] operation)
Executes an operation to the Raft cluster.
|
default CompletableFuture<Void> |
PrimitiveProxy.invoke(OperationId operationId)
Submits an empty operation to the Raft cluster, awaiting a void result.
|
default <R> CompletableFuture<R> |
PrimitiveProxy.invoke(OperationId operationId,
Function<byte[],R> decoder)
Submits an empty operation to the Raft cluster.
|
default <T> CompletableFuture<Void> |
PrimitiveProxy.invoke(OperationId operationId,
Function<T,byte[]> encoder,
T operation)
Submits an operation to the Raft cluster.
|
default <T,R> CompletableFuture<R> |
PrimitiveProxy.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 |
ServiceExecutor.handle(OperationId operationId,
Function<Commit<byte[]>,byte[]> callback)
Registers a operation callback.
|
default void |
ServiceExecutor.register(OperationId operationId,
Consumer<Commit<Void>> callback)
Registers a operation callback.
|
default <T> void |
ServiceExecutor.register(OperationId operationId,
Function<byte[],T> decoder,
Consumer<Commit<T>> callback)
Registers a operation callback.
|
default <T,R> void |
ServiceExecutor.register(OperationId operationId,
Function<byte[],T> decoder,
Function<Commit<T>,R> callback,
Function<R,byte[]> encoder)
Registers an operation callback.
|
default <R> void |
ServiceExecutor.register(OperationId operationId,
Function<Commit<Void>,R> callback,
Function<R,byte[]> encoder)
Registers a operation callback.
|
default void |
ServiceExecutor.register(OperationId operationId,
Runnable callback)
Registers a operation callback.
|
default <R> void |
ServiceExecutor.register(OperationId operationId,
Supplier<R> callback,
Function<R,byte[]> encoder)
Registers a no argument operation callback.
|
Copyright © 2013–2018. All rights reserved.