Package akka.stream
Class DelayOverflowStrategy$
- java.lang.Object
-
- akka.stream.DelayOverflowStrategy$
-
- All Implemented Interfaces:
java.io.Serializable
public class DelayOverflowStrategy$ extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DelayOverflowStrategy$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description DelayOverflowStrategy$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelayOverflowStrategybackpressure()If the buffer is full when a new element is available this strategy backpressures the upstream publisher until space becomes available in the buffer.DelayOverflowStrategydropBuffer()If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element.DelayOverflowStrategydropHead()If the buffer is full when a new element arrives, drops the oldest element from the buffer to make space for the new element.DelayOverflowStrategydropNew()If the buffer is full when a new element arrives, drops the new element.DelayOverflowStrategydropTail()If the buffer is full when a new element arrives, drops the youngest element from the buffer to make space for the new element.DelayOverflowStrategyemitEarly()If the buffer is full when a new element is available this strategy send next element downstream without waiting Will backpressure if downstream is not ready.DelayOverflowStrategyfail()If the buffer is full when a new element is available this strategy completes the stream with failure.
-
-
-
Field Detail
-
MODULE$
public static final DelayOverflowStrategy$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
emitEarly
public DelayOverflowStrategy emitEarly()
If the buffer is full when a new element is available this strategy send next element downstream without waiting Will backpressure if downstream is not ready.
-
dropHead
public 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.
-
dropTail
public 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.
-
dropBuffer
public DelayOverflowStrategy dropBuffer()
If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element.
-
dropNew
public DelayOverflowStrategy dropNew()
If the buffer is full when a new element arrives, drops the new element.
-
backpressure
public 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.
-
fail
public DelayOverflowStrategy fail()
If the buffer is full when a new element is available this strategy completes the stream with failure.
-
-