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
    Modifier and Type
    Required Element
    Description
    The kind of scheduler the class or method uses.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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.