public interface Task
Scheduled
task.-
Method Details
-
description
String description()Human-readable description of the task invocation interval.- Returns:
- interval description
-
executor
ScheduledExecutorService executor()Executor
used for invocation of scheduled tasks.- Returns:
- used executor
-
close
default void close()Close the created task. This will cancel the scheduled future. -
id
ID used to identify this task. It should be unique, as it is used to identify a single task, for example to cancel it.- Returns:
- task ID
-