public class OnScheduleMultiHandlerManager extends MultiHandlerManager<Function<Runnable,Runnable>> implements Function<Runnable,Runnable>, BiConsumer<Runnable[],Function<Runnable,Runnable>>
Use enable()
to install the single global RxJavaPlugins handler.
handlers
Constructor and Description |
---|
OnScheduleMultiHandlerManager() |
Modifier and Type | Method and Description |
---|---|
void |
accept(Runnable[] t1,
Function<Runnable,Runnable> t2) |
void |
append()
Adds the current non-null OnSchedule hook to this handler and replaces it
in RxJavaPlugins with this OnScheduleMultiHandlerManager.
|
Runnable |
apply(Runnable t) |
void |
disable()
Disables this manager by restoring a
null OnSchedule hook. |
void |
enable()
Enables this manager by replacing any existing OnSchedule hook in RxJavaPlugins.
|
clear, forEach, forEach, hasHandlers, register
public void enable()
public void disable()
null
OnSchedule hook.public void append()