Package | Description |
---|---|
agi.foundation.infrastructure.threading |
Contains types used to perform and manage calculations among multiple threads of execution.
|
Modifier and Type | Method and Description |
---|---|
RecurringTask |
RecurringTaskStatistics.getTask()
Gets the recurring task.
|
static RecurringTask |
RecurringTask.of(RecurringTask.Function f)
Create a delegate for the given interface.
|
static RecurringTask |
RecurringTask.of(RecurringTask.Function f,
Class<?> targetClass,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
static RecurringTask |
RecurringTask.of(RecurringTask.Function f,
Object targetObject,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
Modifier and Type | Method and Description |
---|---|
Iterable<RecurringTask> |
RecurringTaskScheduler.getTasks()
Gets the list of tasks.
|
Modifier and Type | Method and Description |
---|---|
void |
RecurringTaskScheduler.addTask(Duration period,
RecurringTask task)
Adds a task to be executed on a recurring basis.
|
RecurringTaskStatistics |
RecurringTaskScheduler.getTaskData(RecurringTask task)
Gets a copy of the performance metrics associated with the given
recurring task.
|
RecurringTaskStatistics |
RecurringTaskScheduler.removeTask(RecurringTask task)
Removes a task so that it is no longer executed on a recurring basis.
|