java.lang.Object
dk.cloudcreate.essentials.reactive.command.AbstractCommandBus
dk.cloudcreate.essentials.reactive.command.LocalCommandBus
All Implemented Interfaces:
CommandBus

public class LocalCommandBus extends AbstractCommandBus
Provides a JVM local and non-durable, in regard to sendAndDontWait(Object)/sendAndDontWait(Object, Duration)), variant of the CommandBus concept
See Also:
  • Constructor Details

  • Method Details

    • 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