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