public enum Observables extends Enum<Observables>
Various utilities to help with Observables.
| Modifier and Type | Method and Description |
|---|---|
static void |
failSafe(rx.Scheduler scheduler,
boolean moveOut,
rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable,
Throwable err)
Helper method to fail a given observable while still making sure to move it onto the proper scheduler for handling if needed (similar to onNext).
|
static Observables |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Observables[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Observables[] values()
for (Observables c : Observables.values()) System.out.println(c);
public static Observables valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void failSafe(rx.Scheduler scheduler,
boolean moveOut,
rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable,
Throwable err)
Helper method to fail a given observable while still making sure to move it onto the proper scheduler for handling if needed (similar to onNext).
Copyright © 2017 Couchbase, Inc.. All rights reserved.