| Package | Description |
|---|---|
| io.simplesource.api |
| Modifier and Type | Method and Description |
|---|---|
static CommandAPI.CommandError |
CommandAPI.CommandError.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandAPI.CommandError[] |
CommandAPI.CommandError.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
io.simplesource.data.Result<CommandAPI.CommandError,io.simplesource.data.NonEmptyList<E>> |
CommandHandler.interpretCommand(K key,
io.simplesource.data.Sequence expectedSeq,
io.simplesource.data.Sequence currentSeq,
A currentAggregate,
C command)
Determine if you will accept or reject the given command given the current aggregate aggregate and
transform into events.
|
default io.simplesource.data.FutureResult<CommandAPI.CommandError,io.simplesource.data.NonEmptyList<io.simplesource.data.Sequence>> |
CommandAPI.publishAndQueryCommand(CommandAPI.Request<K,C> commandRequest,
java.time.Duration timeout)
Chain together publishing a command then query the result.
|
io.simplesource.data.FutureResult<CommandAPI.CommandError,UUID> |
CommandAPI.publishCommand(CommandAPI.Request<K,C> request)
Submit the given command ready for processing.
|
io.simplesource.data.FutureResult<CommandAPI.CommandError,io.simplesource.data.NonEmptyList<io.simplesource.data.Sequence>> |
CommandAPI.queryCommandResult(UUID commandId,
java.time.Duration timeout)
Get the result of the execution of the command identified by the provided UUID.
|
Copyright © 2018. All rights reserved.