Interface ForwardingCommandMessageHandlingMember<T>

Type Parameters:
T - The type of entity to which the message handler will delegate the actual handling of the command
All Superinterfaces:
CommandMessageHandlingMember<T>, MessageHandlingMember<T>
All Known Implementing Classes:
ChildForwardingCommandMessageHandlingMember

public interface ForwardingCommandMessageHandlingMember<T> extends CommandMessageHandlingMember<T>
Interface describing a message handler capable of forwarding a specific command.
Since:
4.6.0
Author:
Somrak Monpengpinij
  • Method Details

    • canForward

      boolean canForward(CommandMessage<?> message, T target)
      Check if this handler is in a state where it can currently accept the command.
      Parameters:
      message - The message that is to be forwarded
      target - The target to forward the command message
      Returns:
      true if this handler can forward command to target entity, false otherwise.