public abstract class DelayOverflowStrategy
extends java.lang.Object
implements scala.Serializable
Constructor and Description |
---|
DelayOverflowStrategy() |
Modifier and Type | Method and Description |
---|---|
static DelayOverflowStrategy |
backpressure()
If the buffer is full when a new element is available this strategy backpressures the upstream publisher until
space becomes available in the buffer.
|
static DelayOverflowStrategy |
dropBuffer()
If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element.
|
static DelayOverflowStrategy |
dropHead()
If the buffer is full when a new element arrives, drops the oldest element from the buffer to make space for
the new element.
|
static DelayOverflowStrategy |
dropNew()
If the buffer is full when a new element arrives, drops the new element.
|
static DelayOverflowStrategy |
dropTail()
If the buffer is full when a new element arrives, drops the youngest element from the buffer to make space for
the new element.
|
static DelayOverflowStrategy |
emitEarly()
If the buffer is full when a new element is available this strategy send next element downstream without waiting
|
static DelayOverflowStrategy |
fail()
If the buffer is full when a new element is available this strategy completes the stream with failure.
|
public static DelayOverflowStrategy emitEarly()
public static DelayOverflowStrategy dropHead()
public static DelayOverflowStrategy dropTail()
public static DelayOverflowStrategy dropBuffer()
public static DelayOverflowStrategy dropNew()
public static DelayOverflowStrategy backpressure()
public static DelayOverflowStrategy fail()