public class RxJavaPlugins
extends java.lang.Object
register methods in this classSystem.getProperty(String) (see get methods for
property names)| Modifier and Type | Method and Description |
|---|---|
RxJavaDefaultSchedulers |
getDefaultSchedulers()
Retrieves the instance of
RxJavaDefaultSchedulers to use based on order of precedence as defined
in the RxJavaPlugins class header. |
RxJavaErrorHandler |
getErrorHandler()
Retrieves an instance of
RxJavaErrorHandler to use based on order of precedence as defined in
RxJavaPlugins class header. |
static RxJavaPlugins |
getInstance()
Retrieves the single
RxJavaPlugins instance. |
RxJavaObservableExecutionHook |
getObservableExecutionHook()
Retrieves the instance of
RxJavaObservableExecutionHook to use based on order of precedence as
defined in RxJavaPlugins class header. |
void |
registerDefaultSchedulers(RxJavaDefaultSchedulers impl)
Registers an
RxJavaDefaultSchedulers implementation as a global override of any injected or
default implementations. |
void |
registerErrorHandler(RxJavaErrorHandler impl)
Registers an
RxJavaErrorHandler implementation as a global override of any injected or default
implementations. |
void |
registerObservableExecutionHook(RxJavaObservableExecutionHook impl)
Register an
RxJavaObservableExecutionHook implementation as a global override of any injected or
default implementations. |
public static RxJavaPlugins getInstance()
RxJavaPlugins instance.RxJavaPlugins instancepublic RxJavaErrorHandler getErrorHandler()
RxJavaErrorHandler to use based on order of precedence as defined in
RxJavaPlugins class header.
Override the default by calling RxJavaPlugins.registerErrorHandler(RxJavaErrorHandler) or by setting the
property rxjava.plugin.RxJavaErrorHandler.implementation with the full classname to load.
RxJavaErrorHandler implementation to usepublic void registerErrorHandler(RxJavaErrorHandler impl)
RxJavaErrorHandler implementation as a global override of any injected or default
implementations.impl - RxJavaErrorHandler implementationjava.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying
to register)public RxJavaObservableExecutionHook getObservableExecutionHook()
RxJavaObservableExecutionHook to use based on order of precedence as
defined in RxJavaPlugins class header.
Override the default by calling RxJavaPlugins.registerObservableExecutionHook(RxJavaObservableExecutionHook)
or by setting the property rxjava.plugin.RxJavaObservableExecutionHook.implementation with the
full classname to load.
RxJavaObservableExecutionHook implementation to usepublic void registerObservableExecutionHook(RxJavaObservableExecutionHook impl)
RxJavaObservableExecutionHook implementation as a global override of any injected or
default implementations.impl - RxJavaObservableExecutionHook implementationjava.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying
to register)public RxJavaDefaultSchedulers getDefaultSchedulers()
RxJavaDefaultSchedulers to use based on order of precedence as defined
in the RxJavaPlugins class header.
Override the default by calling RxJavaPlugins.registerDefaultSchedulers(RxJavaDefaultSchedulers) or by setting
the property rxjava.plugin.RxJavaDefaultSchedulers.implementation with the full classname to
load.
RxJavaDefaultSchedulers implementation in usepublic void registerDefaultSchedulers(RxJavaDefaultSchedulers impl)
RxJavaDefaultSchedulers implementation as a global override of any injected or
default implementations.impl - RxJavaDefaultSchedulers implementationjava.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying
to register)