Package akka.stream

Class DelayOverflowStrategy

    • Constructor Detail

      • DelayOverflowStrategy

        public DelayOverflowStrategy()
    • Method Detail

      • dropHead

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

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

        public static DelayOverflowStrategy 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 static DelayOverflowStrategy dropNew()
        If the buffer is full when a new element arrives, drops the new element.
        Returns:
        (undocumented)
      • backpressure

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

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

        public abstract boolean isBackpressure()