public class SchedulerType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static SchedulerType |
ASYNCHRONOUS
The async thread - used for async tasks
If not specified, the main thread will be used
|
static SchedulerType |
COMPLETABLE_FUTURE
The completable future thread - used for completable future tasks
If not specified, the async thread will be used
|
static SchedulerType |
EXECUTOR
The executor thread - used for executor tasks
If not specified, the main thread will be used
|
static SchedulerType |
MAIN
The main thread - used as default
|
static SchedulerType |
SUGGESTER
The suggester thread - used for generating suggestions
If not specified, the async thread will be used
|
| Modifier | Constructor and Description |
|---|---|
protected |
SchedulerType(java.lang.String name,
boolean logging,
SchedulerType... replaceable) |
protected |
SchedulerType(java.lang.String name,
SchedulerType... replaceable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName() |
int |
hashCode() |
boolean |
isLogging() |
SchedulerType |
logging() |
java.util.Optional<SchedulerType> |
resolve(java.util.Collection<SchedulerType> available) |
java.util.Optional<SchedulerType> |
resolve(SchedulerType... available) |
java.lang.String |
toString() |
public static final SchedulerType MAIN
public static final SchedulerType ASYNCHRONOUS
public static final SchedulerType COMPLETABLE_FUTURE
public static final SchedulerType EXECUTOR
public static final SchedulerType SUGGESTER
protected SchedulerType(java.lang.String name,
SchedulerType... replaceable)
protected SchedulerType(java.lang.String name,
boolean logging,
SchedulerType... replaceable)
public java.lang.String getName()
public boolean isLogging()
public SchedulerType logging()
public java.util.Optional<SchedulerType> resolve(SchedulerType... available)
public java.util.Optional<SchedulerType> resolve(java.util.Collection<SchedulerType> available)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object