Class CommandCallbackWrapper<A,C,R>

java.lang.Object
org.axonframework.commandhandling.distributed.CommandCallbackWrapper<A,C,R>
Type Parameters:
A - The type of the session identifier
C - The type of the command
R - The type of the expected result
All Implemented Interfaces:
CommandCallback<C,R>

public class CommandCallbackWrapper<A,C,R> extends Object implements CommandCallback<C,R>
Wrapper for a Command callback. This is used in a CommandCallbackRepository
Author:
Koen Lavooij
  • Constructor Details

    • CommandCallbackWrapper

      public CommandCallbackWrapper(A channelId, CommandMessage<C> message, CommandCallback<? super C,? super R> callback)
      Initializes a CommandCallbackWrapper which wraps the original callback and holds on to the command message and channelId of the channel on which the message is sent.
      Parameters:
      channelId - used to identify the channel used to send the message
      message - the command message that was sent
      callback - the command callback to notify when the command result is received
  • Method Details