Package akka.stream

Class OverflowStrategy$

  • All Implemented Interfaces:
    java.io.Serializable, scala.Serializable

    public class OverflowStrategy$
    extends java.lang.Object
    implements scala.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static OverflowStrategy$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

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

      • OverflowStrategy$

        public OverflowStrategy$()
    • Method Detail

      • dropHead

        public 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.
        Returns:
        (undocumented)
      • dropTail

        public 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.
        Returns:
        (undocumented)
      • dropBuffer

        public OverflowStrategy dropBuffer()
        If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element.
        Returns:
        (undocumented)
      • dropNew

        public OverflowStrategy dropNew()
        If the buffer is full when a new element arrives, drops the new element.
        Returns:
        (undocumented)
      • backpressure

        public 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.
        Returns:
        (undocumented)
      • fail

        public OverflowStrategy fail()
        If the buffer is full when a new element is available this strategy completes the stream with failure.
        Returns:
        (undocumented)