Enum Class PausableChannelConfiguration.PausableBufferStrategy

java.lang.Object
java.lang.Enum<PausableChannelConfiguration.PausableBufferStrategy>
io.smallrye.reactive.messaging.PausableChannelConfiguration.PausableBufferStrategy
All Implemented Interfaces:
Serializable, Comparable<PausableChannelConfiguration.PausableBufferStrategy>, Constable
Enclosing interface:
PausableChannelConfiguration

public static enum PausableChannelConfiguration.PausableBufferStrategy extends Enum<PausableChannelConfiguration.PausableBufferStrategy>
Strategy for handling already requested items that arrive while the channel is paused.
  • Enum Constant Details

    • BUFFER

      Buffer already requested items that arrive while paused.

      When the channel is paused, already requested items that arrive from upstream are stored in a buffer and delivered when the channel is resumed. This is the default strategy for pausable channels.

    • DROP

      Drop already requested items that arrive while paused.

      When the channel is paused, already requested items that arrive from upstream are silently dropped without buffering. No buffered items are delivered when the channel is resumed (only new items requested after resume).

    • IGNORE

      Ignore pause state for already requested items - items flow through as if channel is not paused.

      When the channel is paused, already requested items continue to flow downstream normally. The pause state only affects new upstream requests (no new items are requested while paused).

  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null