Package org.apache.pekko.stream
Class OverflowStrategy$
java.lang.Object
org.apache.pekko.stream.OverflowStrategy$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OverflowStrategy$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the buffer is full when a new element is available this strategy backpressures the upstream publisher until space becomes available in the buffer.If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element.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()If the buffer is full when a new element arrives, drops the youngest element from the buffer to make space for the new element.fail()If the buffer is full when a new element is available this strategy completes the stream with failure.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
OverflowStrategy$
public OverflowStrategy$()
-
-
Method Details
-
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
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
If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element. -
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
If the buffer is full when a new element is available this strategy completes the stream with failure.
-