Interface InternalCommand<T extends BackendInfo>
-
- All Superinterfaces:
akka.dispatch.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 akka.dispatch.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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable ClientActorBehavior<T>
execute(@NonNull ClientActorBehavior<T> currentBehavior)
Run command actions.
-
-
-
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
-
-