Package io.reactivex.rxjava3.annotations
Annotation Interface SchedulerSupport
@Retention(RUNTIME)
@Documented
@Target({CONSTRUCTOR,METHOD,TYPE})
public @interface SchedulerSupport
Indicates what kind of scheduler the class or method uses.
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
).
- Since:
- 2.0
-
Required Element Summary
Required Elements -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The operator/class runs on RxJava's computation scheduler or takes timing information from it.static final String
A special value indicating the operator/class requires a scheduler to be manually specified.static final String
The operator/class runs on RxJava's I/O scheduler or takes timing information from it.static final String
The operator/class runs on RxJava's new thread scheduler or takes timing information from it.static final String
A special value indicating the operator/class doesn't use schedulers.static final String
The operator/class runs on RxJava's single scheduler or takes timing information from it.static final String
The operator/class runs on RxJava's trampoline scheduler or takes timing information from it.
-
Field Details
-
NONE
A special value indicating the operator/class doesn't use schedulers.- See Also:
-
CUSTOM
A special value indicating the operator/class requires a scheduler to be manually specified.- See Also:
-
COMPUTATION
The operator/class runs on RxJava's computation scheduler or takes timing information from it.- See Also:
-
IO
The operator/class runs on RxJava's I/O scheduler or takes timing information from it.- See Also:
-
NEW_THREAD
The operator/class runs on RxJava's new thread scheduler or takes timing information from it.- See Also:
-
TRAMPOLINE
The operator/class runs on RxJava's trampoline scheduler or takes timing information from it.- See Also:
-
SINGLE
The operator/class runs on RxJava's single scheduler or takes timing information from it.History: 2.0.8 - experimental
- Since:
- 2.2
- See Also:
-
-
Element Details
-
value
String valueThe kind of scheduler the class or method uses.- Returns:
- the name of the scheduler the class or method uses
-