public class RxUtils
extends java.lang.Object
| Constructor and Description |
|---|
RxUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> <any> |
applyCustomSchedulers(android.os.Handler subscribeHandler)
Apply the subscribeOn/observeOn transformation of {custom_handler}/mainThread
to an observable via compose()
|
static <T> <any> |
applyCustomSchedulers(android.os.Handler subscribeHandler,
android.os.Handler observeHandler)
Apply the subscribeOn/observeOn transformation of computation/mainThread
to an observable via compose()
|
static <T> <any> |
applyIOSchedulers()
Apply the subscribeOn/observeOn transformation of io/mainThread
to an observable via compose()
|
static <T> <any> |
applyLogging(java.lang.String name)
Add a log statement to the onNext, onError, and onCompleted parts of an observable
|
static <T> <any> |
applyNewThreadSchedulers()
Apply the subscribeOn/observeOn transformation of newThread/mainThread
to an observable via compose()
|
static <T> <any> |
applySchedulers(Scheduler subscribeScheduler)
Apply the subscribeOn/observeOn transformation of custom/mainThread
to an observable via compose()
|
static <T> <any> |
applyWorkSchedulers()
Apply the subscribeOn/observeOn transformation of computation/mainThread
to an observable via compose()
|
static <T> <any> |
benchmark(java.lang.String name)
Benchmark an observable from the point of subscription to the point of completion
|
public static <T> <any> applyIOSchedulers()
Apply the subscribeOn/observeOn transformation of io/mainThread to an observable via compose()
Only apply this to observables that are handling I/O work, e.g.; Networking, Database, etc...
T - the transformation typepublic static <T> <any> applyNewThreadSchedulers()
Apply the subscribeOn/observeOn transformation of newThread/mainThread to an observable via compose()
Only apply this to observables that are handling work that requires it's own new thread
T - the transformation typepublic static <T> <any> applyWorkSchedulers()
Apply the subscribeOn/observeOn transformation of computation/mainThread to an observable via compose()
Only apply this to observables that are handling computation tasks in the background. Basically all non-IO work
T - the transformation typepublic static <T> <any> applySchedulers(Scheduler subscribeScheduler)
Apply the subscribeOn/observeOn transformation of custom/mainThread to an observable via compose()
T - the transformation typepublic static <T> <any> applyCustomSchedulers(android.os.Handler subscribeHandler)
Apply the subscribeOn/observeOn transformation of {custom_handler}/mainThread to an observable via compose()
Only apply this to observables that are handling computation tasks in the background. Basically all non-IO work
T - the transformation typepublic static <T> <any> applyCustomSchedulers(android.os.Handler subscribeHandler,
android.os.Handler observeHandler)
Apply the subscribeOn/observeOn transformation of computation/mainThread to an observable via compose()
Only apply this to observables that are handling computation tasks in the background. Basically all non-IO work
T - the transformation typepublic static <T> <any> applyLogging(java.lang.String name)
Add a log statement to the onNext, onError, and onCompleted parts of an observable
T - the transformation typename - the log tag namepublic static <T> <any> benchmark(java.lang.String name)
Benchmark an observable from the point of subscription to the point of completion
T - The transformation typename - the name of the observable to print in log statement