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.
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
Modifier and TypeMethodDescription@Nullable ClientActorBehavior
<T> execute
(@NonNull ClientActorBehavior<T> currentBehavior) Run command actions.
-
Method Details
-
execute
Run command actions.- Parameters:
currentBehavior
- Current Behavior- Returns:
- Next behavior to use in the client actor
-