| Package | Description |
|---|---|
| io.atomix.primitive.operation |
Provides classes and interfaces for defining distributed primitive operations.
|
| io.atomix.primitive.service |
Provides classes and interfaces for defining distributed primitive state machines.
|
| 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 Map<Method,OperationId> |
Operations.getMethodMap(Class<?> serviceInterface)
Returns the collection of operations provided by the given service interface.
|
static Map<OperationId,Method> |
Operations.getOperationMap(Class<?> serviceInterface)
Returns the collection of operations provided by the given service interface.
|
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveOperation |
PrimitiveOperation.operation(OperationId id)
Creates a new primitive operation with a simplified identifier and a null value.
|
static PrimitiveOperation |
PrimitiveOperation.operation(OperationId id,
byte[] value)
Creates a new primitive operation with a simplified identifier.
|
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 |
|---|---|
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.
|
<T> void |
ServiceExecutor.register(OperationId operationId,
Consumer<Commit<T>> callback)
Registers a operation callback.
|
<T,R> void |
ServiceExecutor.register(OperationId operationId,
Function<Commit<T>,R> callback)
Registers an operation callback.
|
default void |
ServiceExecutor.register(OperationId operationId,
Runnable callback)
Registers a operation callback.
|
<R> void |
ServiceExecutor.register(OperationId operationId,
Supplier<R> callback)
Registers a no argument operation callback.
|
Copyright © 2013–2018. All rights reserved.