Class MonitorAwareCallback<C,R>

java.lang.Object
org.axonframework.commandhandling.MonitorAwareCallback<C,R>
Type Parameters:
C - the type of payload of the command
R - the type of result of the command handling
All Implemented Interfaces:
CommandCallback<C,R>

public class MonitorAwareCallback<C,R> extends Object implements CommandCallback<C,R>
Wrapper for a callback that notifies a Message Monitor of the message execution result.
  • Constructor Details

    • MonitorAwareCallback

      public MonitorAwareCallback(@Nullable CommandCallback<C,R> delegate, @Nonnull MessageMonitor.MonitorCallback messageMonitorCallback)
      Initialize a callback wrapped around the delegate which will notify a Message Monitor for the given messageMonitorCallback.
      Parameters:
      delegate - the CommandCallback which is being wrapped, may be null
      messageMonitorCallback - the callback for the Message Monitor
  • Method Details