| Package | Description |
|---|---|
| io.atomix.primitive.service |
Provides classes and interfaces for defining distributed primitive state machines.
|
| 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[] |
AbstractPrimitiveService.apply(Commit<byte[]> commit) |
byte[] |
PrimitiveService.apply(Commit<byte[]> commit)
Applies a commit to the state machine.
|
byte[] |
ServiceExecutor.apply(Commit<byte[]> commit)
Applies the given commit to the executor.
|
| 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.
|
Copyright © 2013–2018. All rights reserved.