Interface InternalCommand<T extends BackendInfo>

  • All Superinterfaces:
    ControlMessage
    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 InternalCommand<T extends BackendInfo>
    extends ControlMessage
    This interface is used to pass the unit of work via the actors mailbox. The command can alter behavior of the actor by returning a new behavior. This work will be prioritized before other messages.
    Author:
    Robert Varga
    • Method Detail

      • execute

        @Nullable ClientActorBehavior<T> execute​(@NonNull ClientActorBehavior<T> currentBehavior)
        Run command actions.
        Parameters:
        currentBehavior - Current Behavior
        Returns:
        Next behavior to use in the client actor