This chapter introduces tasks and scheduled tasks. It describes how to manage and monitor tasks, how to retrieve results from asynchronized API calls, and how to retrieve historical tasks. The introduction of task management covers three managed objects:
Task, which represents a running operation;
TaskManager, which manages the
Task objects; and
TaskHistoryCollector, which provides interfaces to retrieve previous tasks.
The second half of this chapter introduces how to schedule an operation to run in the future, once or repetitively.
ScheduledTask represents a scheduled task to be activated in the future.
ScheduledTaskManager manages all the