T
- Type of actor to be supplied (can be ?
for no actor).@FunctionalInterface
public interface Action<T>
Runnable
. They must be scheduled by
ActionEngine
but can also be delegate scheduled referencing a specific actor with
ActionScheduler
. Actions are the only non-optional value when creating
SchedulableActionContext
- which are required to build how the Action will be scheduled.Modifier and Type | Method and Description |
---|---|
void |
perform(ActionContext<T> context)
Performs the actions using the supplied action context.
|
void perform(ActionContext<T> context) throws java.lang.InterruptedException
context
- Current action context.java.lang.InterruptedException
- Can throw interrupted when awaiting other actions.Runnable.run()