public enum BufferOverflowStrategy extends Enum<BufferOverflowStrategy>
backpressure buffering.| Enum Constant and Description | 
|---|
DROP_LATEST
Drop the new element without propagating an error when the buffer is full. 
 | 
DROP_OLDEST
When the buffer is full, remove the oldest element from it and offer the
 new element at the end instead. 
 | 
ERROR
Propagate an  
IllegalStateException when the buffer is full. | 
| Modifier and Type | Method and Description | 
|---|---|
static BufferOverflowStrategy | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static BufferOverflowStrategy[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final BufferOverflowStrategy DROP_LATEST
public static final BufferOverflowStrategy DROP_OLDEST
public static final BufferOverflowStrategy ERROR
IllegalStateException when the buffer is full.public static BufferOverflowStrategy 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 BufferOverflowStrategy[] values()
for (BufferOverflowStrategy c : BufferOverflowStrategy.values()) System.out.println(c);