@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface ScheduleForActor
Entity
type annotation for
ActionScheduler.scheduleForActor(Action, long, long, TimeUnit)
. ScheduleForActorFunction
for acceptable method signatures.ScheduleForActorMethod
Modifier and Type | Fields and Description |
---|---|
static long |
DEFAULT_INITIAL_DELAY
Default initial delay (
0L ). |
static long |
DEFAULT_PERIOD
Default repeat period (
0L ). |
static java.util.concurrent.TimeUnit |
DEFAULT_TIMEUNIT
Default time unit (nanoseconds).
|
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends Action<Entity>> |
action
Action to schedule.
|
Modifier and Type | Optional Element and Description |
---|---|
long |
initialDelay
Initial delay before executing.
|
long |
period
Repeat period.
|
java.util.concurrent.TimeUnit |
unit
Time unit for scheduling information.
|
public static final long DEFAULT_INITIAL_DELAY
0L
).public static final java.util.concurrent.TimeUnit DEFAULT_TIMEUNIT
public abstract long initialDelay
DEFAULT_INITIAL_DELAY
public abstract long period
DEFAULT_PERIOD
public abstract java.util.concurrent.TimeUnit unit
DEFAULT_TIMEUNIT