Class DelayOverflowStrategy$

java.lang.Object
org.apache.pekko.stream.DelayOverflowStrategy$
All Implemented Interfaces:
Serializable

public class DelayOverflowStrategy$ extends Object implements Serializable
See Also:
  • Field Details

    • MODULE$

      public static final DelayOverflowStrategy$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • DelayOverflowStrategy$

      public DelayOverflowStrategy$()
  • Method Details

    • 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.
    • 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.