Uses of Interface
org.axonframework.commandhandling.CommandCallback
Packages that use CommandCallback
Package
Description
Classes that implement the concept of command handling using explicit command objects.
A collection of classes which may prove useful when testing Axon-based classes.
-
Uses of CommandCallback in org.axonframework.axonserver.connector.command
Methods in org.axonframework.axonserver.connector.command with parameters of type CommandCallbackModifier and TypeMethodDescriptionAxonServerCommandBus.Builder.defaultCommandCallback(CommandCallback<Object, Object> defaultCommandCallback) Sets the callback to use when commands are dispatched in a "fire and forget" method, such asAxonServerCommandBus.dispatch(CommandMessage).<C,R> void AxonServerCommandBus.dispatch(CommandMessage<C> commandMessage, CommandCallback<? super C, ? super R> commandCallback) -
Uses of CommandCallback in org.axonframework.commandhandling
Classes in org.axonframework.commandhandling that implement CommandCallbackModifier and TypeClassDescriptionclassMonitorAwareCallback<C,R> Wrapper for a callback that notifies a Message Monitor of the message execution result.classRepresents aCommandCallbackthat was wrapped with another.Methods in org.axonframework.commandhandling that return CommandCallbackModifier and TypeMethodDescriptiondefault CommandCallback<C, R> CommandCallback.wrap(CommandCallback<C, R> wrappingCallback) Wraps the command callback with another using aWrappedCommandCallback.Methods in org.axonframework.commandhandling with parameters of type CommandCallbackModifier and TypeMethodDescriptionAsynchronousCommandBus.Builder.defaultCommandCallback(CommandCallback<Object, Object> defaultCommandCallback) SimpleCommandBus.Builder.defaultCommandCallback(CommandCallback<Object, Object> defaultCommandCallback) Sets the callback to use when commands are dispatched in a "fire and forget" method, such asSimpleCommandBus.dispatch(CommandMessage).<C,R> void CommandBus.dispatch(CommandMessage<C> command, CommandCallback<? super C, ? super R> callback) Dispatch the givencommandto the CommandHandler subscribed to the givencommand's name.<C,R> void SimpleCommandBus.dispatch(CommandMessage<C> command, CommandCallback<? super C, ? super R> callback) protected <C,R> void SimpleCommandBus.doDispatch(CommandMessage<C> command, CommandCallback<? super C, ? super R> callback) Performs the actual dispatching logic.protected <C,R> void AsynchronousCommandBus.handle(CommandMessage<C> command, MessageHandler<? super CommandMessage<?>> handler, CommandCallback<? super C, ? super R> callback) protected <C,R> void SimpleCommandBus.handle(CommandMessage<C> command, MessageHandler<? super CommandMessage<?>> handler, CommandCallback<? super C, ? super R> callback) Performs the actual handling logic.default CommandCallback<C, R> CommandCallback.wrap(CommandCallback<C, R> wrappingCallback) Wraps the command callback with another using aWrappedCommandCallback.Constructors in org.axonframework.commandhandling with parameters of type CommandCallbackModifierConstructorDescriptionMonitorAwareCallback(CommandCallback<C, R> delegate, MessageMonitor.MonitorCallback messageMonitorCallback) Initialize a callback wrapped around thedelegatewhich will notify a Message Monitor for the givenmessageMonitorCallback.protectedWrappedCommandCallback(CommandCallback<C, R> outerCallback, CommandCallback<C, R> innerCallback) Constructs a newWrappedCommandCallback, called by usingwrap(CommandCallback). -
Uses of CommandCallback in org.axonframework.commandhandling.callbacks
Classes in org.axonframework.commandhandling.callbacks that implement CommandCallbackModifier and TypeClassDescriptionclassACommandCallbackimplementation wrapping another, that concisely logs failed commands.classFutureCallback<C,R> Command Handler Callback that allows the dispatching thread to wait for the result of the callback, using the Future mechanism.classCommandCallback implementation that simply logs the results of a command.final classCallback that does absolutely nothing when invoked.Constructors in org.axonframework.commandhandling.callbacks with parameters of type CommandCallbackModifierConstructorDescriptionFailureLoggingCallback(CommandCallback<C, R> delegate) Deprecated.FailureLoggingCallback(org.slf4j.Logger logger, CommandCallback<C, R> delegate) Deprecated.Please usewrap(CommandCallback)to wrap a command with a delegate and use theFailureLoggingCallback(Logger)to specify you custom logger. -
Uses of CommandCallback in org.axonframework.commandhandling.distributed
Classes in org.axonframework.commandhandling.distributed that implement CommandCallbackModifier and TypeClassDescriptionclassCommandCallbackWrapper<A,C, R> Wrapper for a Command callback.Methods in org.axonframework.commandhandling.distributed with parameters of type CommandCallbackModifier and TypeMethodDescriptionDistributedCommandBus.Builder.defaultCommandCallback(CommandCallback<Object, Object> defaultCommandCallback) Sets the callback to use when commands are dispatched in a "fire and forget" method, such asDistributedCommandBus.dispatch(CommandMessage).<C,R> void DistributedCommandBus.dispatch(CommandMessage<C> command, CommandCallback<? super C, ? super R> callback) Dispatch the givencommandto the CommandHandler subscribed to the givencommand's name.<C,R> void CommandBusConnector.send(Member destination, CommandMessage<C> command, CommandCallback<? super C, R> callback) Sends the givencommandto the node assigned to handle messages with the givenroutingKey.Constructors in org.axonframework.commandhandling.distributed with parameters of type CommandCallbackModifierConstructorDescriptionCommandCallbackWrapper(A channelId, CommandMessage<C> message, CommandCallback<? super C, ? super R> callback) Initializes aCommandCallbackWrapperwhich wraps the original callback and holds on to the commandmessageandchannelIdof the channel on which the message is sent. -
Uses of CommandCallback in org.axonframework.commandhandling.gateway
Classes in org.axonframework.commandhandling.gateway that implement CommandCallbackModifier and TypeClassDescriptionclassRetryingCallback<C,R> Callback implementation that will invoke a retry scheduler if a command results in a runtime exception.Methods in org.axonframework.commandhandling.gateway with parameters of type CommandCallbackModifier and TypeMethodDescriptionDefaultCommandGateway.Builder.commandCallback(CommandCallback<Object, Object> commandCallback) Set aCommandCallbackon the command bus.<C,R> CommandGatewayFactory CommandGatewayFactory.registerCommandCallback(CommandCallback<C, R> callback, ResponseType<R> responseType) Registers thecallback, which is invoked for each sent command, unless Axon is able to detect that the result of the command does not match the type accepted by the callback.protected <C,R> void AbstractCommandGateway.send(C command, CommandCallback<? super C, ? super R> callback) Sends the givencommand, and invokes thecallbackwhen the command is processed.<C,R> void CommandGateway.send(C command, CommandCallback<? super C, ? super R> callback) Sends the givencommand, and have the result of the command's execution reported to the givencallback.<C,R> void DefaultCommandGateway.send(C command, CommandCallback<? super C, ? super R> callback) Constructors in org.axonframework.commandhandling.gateway with parameters of type CommandCallbackModifierConstructorDescriptionRetryingCallback(CommandCallback<C, R> delegate, RetryScheduler retryScheduler, CommandBus commandBus) Initialize the RetryingCallback with the givendelegate, representing the actual callback passed as a parameter to dispatch, the givencommandMessage,retrySchedulerandcommandBus. -
Uses of CommandCallback in org.axonframework.disruptor.commandhandling
Classes in org.axonframework.disruptor.commandhandling that implement CommandCallbackModifier and TypeClassDescriptionclassWrapper for command handler Callbacks that detects blacklisted aggregates and starts a cleanup process when an aggregate is blacklisted.Methods in org.axonframework.disruptor.commandhandling with parameters of type CommandCallbackModifier and TypeMethodDescriptionDisruptorCommandBus.Builder.defaultCommandCallback(CommandCallback<Object, Object> defaultCommandCallback) Sets the callback to use when commands are dispatched in a "fire and forget" method, such asDisruptorCommandBus.dispatch(CommandMessage).<C,R> void DisruptorCommandBus.dispatch(CommandMessage<C> command, CommandCallback<? super C, ? super R> callback) Constructors in org.axonframework.disruptor.commandhandling with parameters of type CommandCallbackModifierConstructorDescriptionBlacklistDetectingCallback(CommandCallback<? super C, R> delegate, com.lmax.disruptor.RingBuffer<CommandHandlingEntry> ringBuffer, BiConsumer<CommandMessage<? extends C>, CommandCallback<? super C, R>> retryMethod, boolean rescheduleOnCorruptState) Initializes the callback which allows the givencommandto be rescheduled on the givenringBufferif it failed due to a corrupt state.Constructor parameters in org.axonframework.disruptor.commandhandling with type arguments of type CommandCallbackModifierConstructorDescriptionBlacklistDetectingCallback(CommandCallback<? super C, R> delegate, com.lmax.disruptor.RingBuffer<CommandHandlingEntry> ringBuffer, BiConsumer<CommandMessage<? extends C>, CommandCallback<? super C, R>> retryMethod, boolean rescheduleOnCorruptState) Initializes the callback which allows the givencommandto be rescheduled on the givenringBufferif it failed due to a corrupt state. -
Uses of CommandCallback in org.axonframework.test.aggregate
Classes in org.axonframework.test.aggregate that implement CommandCallbackModifier and TypeClassDescriptionclassImplementation of the ResultValidator. -
Uses of CommandCallback in org.axonframework.test.utils
Methods in org.axonframework.test.utils with parameters of type CommandCallbackModifier and TypeMethodDescription<C,R> void RecordingCommandBus.dispatch(CommandMessage<C> command, CommandCallback<? super C, ? super R> callback)
wrap(CommandCallback)to wrap a command with a delegate and use theFailureLoggingCallback(org.slf4j.Logger, org.axonframework.commandhandling.CommandCallback<C, R>)to create this callback