Interface PausableChannel


public interface PausableChannel
A channel that can be paused and resumed.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clears the buffer of the channel, discarding any items that have been requested from upstream but not yet delivered to the consumer.
    boolean
    Checks whether the channel is paused.
    void
    Pauses the channel.
    void
    Resumes the channel.
  • Method Details

    • isPaused

      boolean isPaused()
      Checks whether the channel is paused.
      Returns:
      true if the channel is paused, false otherwise
    • pause

      void pause()
      Pauses the channel.
    • resume

      void resume()
      Resumes the channel.
    • clearBuffer

      default void clearBuffer()
      Clears the buffer of the channel, discarding any items that have been requested from upstream but not yet delivered to the consumer.