Class OnScheduleMultiHandlerManager
- java.lang.Object
-
- hu.akarnokd.rxjava3.debug.multihook.MultiHandlerManager<Function<Runnable,Runnable>>
-
- hu.akarnokd.rxjava3.debug.multihook.OnScheduleMultiHandlerManager
-
- All Implemented Interfaces:
BiConsumer<Runnable[],Function<Runnable,Runnable>>,Function<Runnable,Runnable>
public class OnScheduleMultiHandlerManager extends MultiHandlerManager<Function<Runnable,Runnable>> implements Function<Runnable,Runnable>, BiConsumer<Runnable[],Function<Runnable,Runnable>>
Handles the OnSchedule hooks.Use
enable()to install the single global RxJavaPlugins handler.- Since:
- 0.18.0
-
-
Field Summary
-
Fields inherited from class hu.akarnokd.rxjava3.debug.multihook.MultiHandlerManager
handlers
-
-
Constructor Summary
Constructors Constructor Description OnScheduleMultiHandlerManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Runnable[] t1, Function<Runnable,Runnable> t2)voidappend()Adds the current non-null OnSchedule hook to this handler and replaces it in RxJavaPlugins with this OnScheduleMultiHandlerManager.Runnableapply(Runnable t)voiddisable()Disables this manager by restoring anullOnSchedule hook.voidenable()Enables this manager by replacing any existing OnSchedule hook in RxJavaPlugins.-
Methods inherited from class hu.akarnokd.rxjava3.debug.multihook.MultiHandlerManager
clear, forEach, forEach, hasHandlers, register
-
-
-
-
Method Detail
-
enable
public void enable()
Enables this manager by replacing any existing OnSchedule hook in RxJavaPlugins.
-
disable
public void disable()
Disables this manager by restoring anullOnSchedule hook.
-
append
public void append()
Adds the current non-null OnSchedule hook to this handler and replaces it in RxJavaPlugins with this OnScheduleMultiHandlerManager.
-
-