Class LocalCommandBus

    • Method Detail

      • sendAndDontWait

        public <C> void sendAndDontWait​(C command)
        Description copied from interface: CommandBus
        The send command asynchronously without waiting for the result of processing the Command.
        The command handler cannot return any value when invoked using this method.
        Type Parameters:
        C - the command type
        Parameters:
        command - the command to send
      • sendAndDontWait

        public <C> void sendAndDontWait​(C command,
                                        Duration delayMessageDelivery)
        Description copied from interface: CommandBus
        The send command asynchronously without waiting for the result of processing the Command.
        The command handler cannot return any value when invoked using this method.
        Type Parameters:
        C - the command type
        Parameters:
        command - the command to send
        delayMessageDelivery - how long should we delay the command message sending