@Retention(value=RUNTIME)
@Documented
@Target(value={METHOD,TYPE})
public @interface SchedulerSupport
Constants are provided for instances from Schedulers
as well as values for
not using a scheduler and a manually-specified scheduler.
Libraries providing their own values should namespace them with their base package name followed
by a colon (:
) and then a human-readable name (e.g., com.example:ui-thread
).
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
COMPUTATION
The operator/class runs on RxJava's computation
scheduler or takes timing information from it.
|
static java.lang.String |
CUSTOM
A special value indicating the operator/class requires a scheduler to be manually specified.
|
static java.lang.String |
IO
The operator/class runs on RxJava's I/O scheduler or takes
timing information from it.
|
static java.lang.String |
NEW_THREAD
The operator/class runs on RxJava's new thread scheduler
or takes timing information from it.
|
static java.lang.String |
NONE
A special value indicating the operator/class doesn't use schedulers.
|
static java.lang.String |
SINGLE
The operator/class runs on RxJava's single scheduler
or takes timing information from it.
|
static java.lang.String |
TRAMPOLINE
The operator/class runs on RxJava's trampoline scheduler
or takes timing information from it.
|
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
The kind of scheduler the class or method uses.
|
public static final java.lang.String NONE
public static final java.lang.String CUSTOM
public static final java.lang.String COMPUTATION
public static final java.lang.String IO
public static final java.lang.String NEW_THREAD
public static final java.lang.String TRAMPOLINE
public static final java.lang.String SINGLE