public enum BackpressureStrategy extends Enum<BackpressureStrategy>
Enum Constant and Description |
---|
BUFFER
Corresponds to
Observable.onBackpressureBuffer() . |
DROP
Corresponds to
Observable.onBackpressureDrop(rx.functions.Action1<? super T>) . |
LATEST
Corresponds to
Observable.onBackpressureLatest() . |
Modifier and Type | Method and Description |
---|---|
static BackpressureStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackpressureStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackpressureStrategy BUFFER
Observable.onBackpressureBuffer()
.public static final BackpressureStrategy DROP
Observable.onBackpressureDrop(rx.functions.Action1<? super T>)
.public static final BackpressureStrategy LATEST
Observable.onBackpressureLatest()
.public static BackpressureStrategy[] values()
for (BackpressureStrategy c : BackpressureStrategy.values()) System.out.println(c);
public static BackpressureStrategy 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 nullCopyright © 2013–2016. All rights reserved.