register methods in this classjava.lang.System#getProperty(String) (see get methods for
property names)In addition to the rxjava.plugin.[simple class name].implementation system properties,
you can define two system property:
rxjava.plugin.[index].class}
rxjava.plugin.[index].impl}
Where the .class property contains the simple class name from above and the .impl
contains the fully qualified name of the implementation class. The [index] can be
any short string or number of your choosing. For example, you can now define a custom
RxJavaErrorHandler via two system property:
rxjava.plugin.1.class=RxJavaErrorHandler
rxjava.plugin.1.impl=some.package.MyRxJavaErrorHandler
RxJavaHooks features instead which let's you change individual handlers at runtime.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| pack-priv static final RxJavaErrorHandler | |
| private final AtomicReference | |
| private static final RxJavaPlugins | |
| private final AtomicReference | |
| private final AtomicReference | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public RxJavaCompletableExecutionHook | Returns: RxJavaCompletableExecutionHook implementation to useRetrieves the instance of |
| public RxJavaErrorHandler | Returns: RxJavaErrorHandler implementation to useRetrieves an instance of |
| public static RxJavaPlugins | Returns: the singleRxJavaPlugins instance
Deprecated
use the static methods of
Retrieves the single RxJavaHooks.
RxJavaPlugins instance.
|
| public RxJavaObservableExecutionHook | Returns: RxJavaObservableExecutionHook implementation to useRetrieves the instance of |
| pack-priv static Object | |
| public RxJavaSchedulersHook | Returns: theRxJavaSchedulersHook implementation in useRetrieves the instance of |
| public RxJavaSingleExecutionHook | Returns: RxJavaSingleExecutionHook implementation to useRetrieves the instance of |
| pack-priv static Properties | Returns: the Properties to use for looking up settingsA security manager may prevent accessing the System properties entirely, therefore, the SecurityException is turned into an empty properties. |
| public void | registerCompletableExecutionHook(RxJavaCompletableExecutionHook
RxJavaCompletableExecutionHook implementationRegister an |
| public void | registerErrorHandler(RxJavaErrorHandler
RxJavaErrorHandler implementationRegisters an |
| public void | registerObservableExecutionHook(RxJavaObservableExecutionHook
RxJavaObservableExecutionHook implementationRegister an |
| public void | registerSchedulersHook(RxJavaSchedulersHook
RxJavaSchedulersHook implementationRegisters an |
| public void | registerSingleExecutionHook(RxJavaSingleExecutionHook
RxJavaSingleExecutionHook implementationRegister an |
| public void |
| completableExecutionHook | back to summary |
|---|---|
| private final AtomicReference<RxJavaCompletableExecutionHook> completableExecutionHook | |
| DEFAULT_ERROR_HANDLER | back to summary |
|---|---|
| pack-priv static final RxJavaErrorHandler DEFAULT_ERROR_HANDLER | |
| errorHandler | back to summary |
|---|---|
| private final AtomicReference<RxJavaErrorHandler> errorHandler | |
| INSTANCE | back to summary |
|---|---|
| private static final RxJavaPlugins INSTANCE | |
| observableExecutionHook | back to summary |
|---|---|
| private final AtomicReference<RxJavaObservableExecutionHook> observableExecutionHook | |
| schedulersHook | back to summary |
|---|---|
| private final AtomicReference<RxJavaSchedulersHook> schedulersHook | |
| singleExecutionHook | back to summary |
|---|---|
| private final AtomicReference<RxJavaSingleExecutionHook> singleExecutionHook | |
| RxJavaPlugins | back to summary |
|---|---|
| pack-priv RxJavaPlugins() | |
| getCompletableExecutionHook | back to summary |
|---|---|
| public RxJavaCompletableExecutionHook getCompletableExecutionHook() Retrieves the instance of
Override the default by calling
| |
| getErrorHandler | back to summary |
|---|---|
| public RxJavaErrorHandler getErrorHandler() Retrieves an instance of
Override the default by calling
| |
| getInstance | back to summary |
|---|---|
| public static RxJavaPlugins getInstance()
Deprecated use the static methods of Retrieves the single
| |
| getObservableExecutionHook | back to summary |
|---|---|
| public RxJavaObservableExecutionHook getObservableExecutionHook() Retrieves the instance of
Override the default by calling
| |
| getPluginImplementationViaProperty | back to summary |
|---|---|
| pack-priv static Object getPluginImplementationViaProperty(Class<?> pluginClass, Properties propsIn) | |
| getSchedulersHook | back to summary |
|---|---|
| public RxJavaSchedulersHook getSchedulersHook() Retrieves the instance of
Override the default by calling
| |
| getSingleExecutionHook | back to summary |
|---|---|
| public RxJavaSingleExecutionHook getSingleExecutionHook() Retrieves the instance of
Override the default by calling
| |
| getSystemPropertiesSafe | back to summary |
|---|---|
| pack-priv static Properties getSystemPropertiesSafe() A security manager may prevent accessing the System properties entirely, therefore, the SecurityException is turned into an empty properties.
| |
| registerCompletableExecutionHook | back to summary |
|---|---|
| public void registerCompletableExecutionHook(RxJavaCompletableExecutionHook impl) Register an
| |
| registerErrorHandler | back to summary |
|---|---|
| public void registerErrorHandler(RxJavaErrorHandler impl) Registers an
| |
| registerObservableExecutionHook | back to summary |
|---|---|
| public void registerObservableExecutionHook(RxJavaObservableExecutionHook impl) Register an
| |
| registerSchedulersHook | back to summary |
|---|---|
| public void registerSchedulersHook(RxJavaSchedulersHook impl) Registers an
| |
| registerSingleExecutionHook | back to summary |
|---|---|
| public void registerSingleExecutionHook(RxJavaSingleExecutionHook impl) Register an
| |
| reset | back to summary |
|---|---|
| public void reset() Reset This API is experimental. Resetting the plugins is dangerous during application runtime and also bad code could invoke it in the middle of an application life-cycle and really break applications if not used cautiously. For more detailed discussions:
| |