public class TaskSchedulerFactory extends Object
TaskScheduler.| Modifier and Type | Method and Description |
|---|---|
static <K,T extends ScheduledTask<K>> |
get(String type,
com.google.common.base.Optional<String> name)
Gets an instance of the
TaskScheduler with the specified type and ensures that it is started. |
static <K,T extends ScheduledTask<K>> |
get(TaskSchedulerType type,
com.google.common.base.Optional<String> name)
Gets an instance of the
TaskScheduler with the specified type and ensures that it is started. |
public static <K,T extends ScheduledTask<K>> TaskScheduler<K,T> get(String type, com.google.common.base.Optional<String> name)
TaskScheduler with the specified type and ensures that it is started. If
the type is unknown an instance of the default TaskScheduler will be returned.K - the type of the key for the ScheduledTaskT - the type of the ScheduledTasktype - the type of the TaskSchedulername - the name associated threads created by the TaskSchedulerTaskSchedulerpublic static <K,T extends ScheduledTask<K>> TaskScheduler<K,T> get(TaskSchedulerType type, com.google.common.base.Optional<String> name)
TaskScheduler with the specified type and ensures that it is started. If
the type is unknown an instance of the default TaskScheduler will be returned.K - the type of the key for the ScheduledTaskT - the type of the ScheduledTasktype - the type of the TaskSchedulername - the name associated threads created by the TaskSchedulerTaskScheduler