Top Description Fields Constructors Methods
io.reactivex

public final Enum BackpressureStrategy

extends Enum<BackpressureStrategy>
Class Inheritance

Represents the options for applying backpressure to a source sequence.

Field Summary

Modifier and TypeField and Description
public static final BackpressureStrategy
BUFFER

Buffers all onNext values until the downstream consumes it.

public static final BackpressureStrategy
DROP

Drops the most recent onNext value if the downstream can't keep up.

public static final BackpressureStrategy
ERROR

Signals a MissingBackpressureException in case the downstream can't keep up.

public static final BackpressureStrategy
LATEST

Keeps only the latest onNext value, overwriting any previous value if the downstream can't keep up.

public static final BackpressureStrategy
MISSING

OnNext events are written without any buffering or dropping.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BackpressureStrategy
public static BackpressureStrategy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BUFFERback to summary
public static final BackpressureStrategy BUFFER

Buffers all onNext values until the downstream consumes it.

DROPback to summary
public static final BackpressureStrategy DROP

Drops the most recent onNext value if the downstream can't keep up.

ERRORback to summary
public static final BackpressureStrategy ERROR

Signals a MissingBackpressureException in case the downstream can't keep up.

LATESTback to summary
public static final BackpressureStrategy LATEST

Keeps only the latest onNext value, overwriting any previous value if the downstream can't keep up.

MISSINGback to summary
public static final BackpressureStrategy MISSING

OnNext events are written without any buffering or dropping. Downstream has to deal with any overflow.

Useful when one applies one of the custom-parameter onBackpressureXXX operators.

Constructor Detail

BackpressureStrategyback to summary
private BackpressureStrategy()

Method Detail

valueOfback to summary
public static BackpressureStrategy valueOf(String name)
valuesback to summary
public static BackpressureStrategy[] values()