Interface InstructionHandler<I,​R>

  • Type Parameters:
    I - the type of the instruction handled by this handler
    R - the type of response used by handle(Object, ReplyChannel)'s ReplyChannel
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface InstructionHandler<I,​R>
    Interface describing a component that is capable of handling instructions coming from AxonServer.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handle​(I instruction, ReplyChannel<R> replyChannel)
      Handle the given instruction, using replyChannel to acknowledge the instruction and reply to AxonServer.
    • Method Detail

      • handle

        void handle​(I instruction,
                    ReplyChannel<R> replyChannel)
        Handle the given instruction, using replyChannel to acknowledge the instruction and reply to AxonServer.
        Parameters:
        instruction - the instruction to handle
        replyChannel - the channel onto which replies and acknowledgements to send