| Package | Description |
|---|---|
| org.axonframework.commandhandling |
Classes that implement the concept of command handling using explicit command objects.
|
| org.axonframework.commandhandling.callbacks | |
| org.axonframework.commandhandling.disruptor | |
| org.axonframework.commandhandling.distributed | |
| org.axonframework.commandhandling.gateway |
| Modifier and Type | Class and Description |
|---|---|
class |
GenericCommandResultMessage<R>
Generic implementation of
CommandResultMessage. |
| Modifier and Type | Method and Description |
|---|---|
CommandResultMessage<R> |
CommandResultMessage.andMetaData(Map<String,?> metaData) |
static <T> CommandResultMessage<T> |
GenericCommandResultMessage.asCommandResultMessage(Object commandResult)
Returns the given
commandResult as a CommandResultMessage instance. |
CommandResultMessage<R> |
CommandResultMessage.withMetaData(Map<String,?> metaData) |
| Modifier and Type | Method and Description |
|---|---|
void |
MonitorAwareCallback.onSuccess(CommandMessage<? extends C> commandMessage,
CommandResultMessage<? extends R> commandResultMessage) |
void |
CommandCallback.onSuccess(CommandMessage<? extends C> commandMessage,
CommandResultMessage<? extends R> commandResultMessage)
Invoked when command handling execution was successful.
|
| Modifier and Type | Method and Description |
|---|---|
CommandResultMessage<? extends R> |
FutureCallback.getResult()
Waits if necessary for the command handling to complete, and then returns its result.
|
CommandResultMessage<? extends R> |
FutureCallback.getResult(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the command handling to complete, and then retrieves its
result, if available.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NoOpCallback.onSuccess(CommandMessage<?> commandMessage,
CommandResultMessage<?> commandResultMessage)
Invoked when command handling execution was successful.
|
void |
VoidCallback.onSuccess(CommandMessage<? extends C> commandMessage,
CommandResultMessage<?> commandResultMessage)
Invoked when command handling execution was successful.
|
void |
FutureCallback.onSuccess(CommandMessage<? extends C> commandMessage,
CommandResultMessage<? extends R> commandResultMessage) |
void |
FailureLoggingCallback.onSuccess(CommandMessage<? extends C> commandMessage,
CommandResultMessage<? extends R> commandResultMessage) |
void |
LoggingCallback.onSuccess(CommandMessage message,
CommandResultMessage commandResultMessage) |
| Modifier and Type | Method and Description |
|---|---|
CommandResultMessage<?> |
CommandHandlingEntry.getResult()
Returns the result of the command's execution, or
null if the command is not yet executed or
resulted in an exception. |
| Modifier and Type | Method and Description |
|---|---|
void |
BlacklistDetectingCallback.onSuccess(CommandMessage<? extends C> commandMessage,
CommandResultMessage<? extends R> commandResultMessage) |
void |
CommandHandlingEntry.setResult(CommandResultMessage<?> result)
Registers the result of the command's execution, if successful.
|
| Modifier and Type | Method and Description |
|---|---|
CommandResultMessage<?> |
ReplyMessage.getCommandResultMessage(Serializer serializer)
Returns the returnValue of the command processing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CommandCallbackWrapper.onSuccess(CommandMessage<? extends C> message,
CommandResultMessage<? extends R> commandResultMessage) |
void |
CommandCallbackWrapper.success(CommandResultMessage<R> result)
Invokes
CommandCallback.onSuccess(CommandMessage, CommandResultMessage) with given result on
the wrapped callback. |
| Constructor and Description |
|---|
ReplyMessage(String commandIdentifier,
boolean success,
CommandResultMessage<?> commandResultMessage,
Serializer serializer)
Initializes a ReplyMessage containing a reply to the command with given {commandIdentifier} and given
commandResultMessage. |
| Modifier and Type | Method and Description |
|---|---|
void |
RetryingCallback.onSuccess(CommandMessage<? extends C> commandMessage,
CommandResultMessage<? extends R> commandResultMessage) |
Copyright © 2010–2018. All rights reserved.