public class OverflowStrategy$
extends java.lang.Object
implements scala.Serializable
Modifier and Type | Field and Description |
---|---|
static OverflowStrategy$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
OverflowStrategy$() |
Modifier and Type | Method and Description |
---|---|
OverflowStrategy |
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.
|
OverflowStrategy |
dropBuffer()
If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element.
|
OverflowStrategy |
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.
|
OverflowStrategy |
dropNew()
If the buffer is full when a new element arrives, drops the new element.
|
OverflowStrategy |
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.
|
OverflowStrategy |
fail()
If the buffer is full when a new element is available this strategy completes the stream with failure.
|
public static final OverflowStrategy$ MODULE$
public OverflowStrategy dropHead()
public OverflowStrategy dropTail()
public OverflowStrategy dropBuffer()
public OverflowStrategy dropNew()
public OverflowStrategy backpressure()
public OverflowStrategy fail()