Top Description Fields Methods
io.reactivex.annotations

public @Interface SchedulerSupport

extends Annotation
Annotations
@Retention:RUNTIME
@Documented
@Target:CONSTRUCTOR, METHOD, TYPE
Imports
java.lang.annotation.*, io.reactivex.schedulers.Schedulers

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

Field Summary

Modifier and TypeField and Description
public static final String
COMPUTATION

The operator/class runs on RxJava's computation scheduler or takes timing information from it.

public static final String
CUSTOM

A special value indicating the operator/class requires a scheduler to be manually specified.

public static final String
IO

The operator/class runs on RxJava's I/O scheduler or takes timing information from it.

public static final String
NEW_THREAD

The operator/class runs on RxJava's new thread scheduler or takes timing information from it.

public static final String
NONE

A special value indicating the operator/class doesn't use schedulers.

public static final String
SINGLE

The operator/class runs on RxJava's single scheduler or takes timing information from it.

public static final String
TRAMPOLINE

The operator/class runs on RxJava's trampoline scheduler or takes timing information from it.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the scheduler the class or method uses
value
()

The kind of scheduler the class or method uses.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

COMPUTATIONback to summary
public static final String COMPUTATION

The operator/class runs on RxJava's computation scheduler or takes timing information from it.

CUSTOMback to summary
public static final String CUSTOM

A special value indicating the operator/class requires a scheduler to be manually specified.

IOback to summary
public static final String IO

The operator/class runs on RxJava's I/O scheduler or takes timing information from it.

NEW_THREADback to summary
public static final String NEW_THREAD

The operator/class runs on RxJava's new thread scheduler or takes timing information from it.

NONEback to summary
public static final String NONE

A special value indicating the operator/class doesn't use schedulers.

SINGLEback to summary
public static final String SINGLE

The operator/class runs on RxJava's single scheduler or takes timing information from it.

History: 2.0.8 - experimental

Since
2.2
TRAMPOLINEback to summary
public static final String TRAMPOLINE

The operator/class runs on RxJava's trampoline scheduler or takes timing information from it.

Method Detail

valueback to summary
public String value()

The kind of scheduler the class or method uses.

Returns:String

the name of the scheduler the class or method uses