Class SchedulerType
java.lang.Object
dev.rollczi.litecommands.scheduler.SchedulerType
- Direct Known Subclasses:
SchedulerPoll
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SchedulerTypeThe async thread - used for async tasks If not specified, the main thread will be usedstatic final SchedulerTypeThe completable future thread - used for completable future tasks If not specified, the async thread will be usedstatic final SchedulerTypeThe executor thread - used for executor tasks If not specified, the main thread will be usedstatic final SchedulerTypeThe main thread - used as defaultstatic final SchedulerTypeThe suggester thread - used for generating suggestions If not specified, the async thread will be used -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSchedulerType(String name, boolean logging, SchedulerType... replaceable) protectedSchedulerType(String name, SchedulerType... replaceable) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()inthashCode()booleanlogging()resolve(SchedulerType... available) resolve(Collection<SchedulerType> available) toString()
-
Field Details
-
MAIN
The main thread - used as default -
ASYNCHRONOUS
The async thread - used for async tasks If not specified, the main thread will be used -
COMPLETABLE_FUTURE
The completable future thread - used for completable future tasks If not specified, the async thread will be used -
EXECUTOR
The executor thread - used for executor tasks If not specified, the main thread will be used -
SUGGESTER
The suggester thread - used for generating suggestions If not specified, the async thread will be used
-
-
Constructor Details
-
SchedulerType
-
SchedulerType
-
-
Method Details