Package io.smallrye.reactive.messaging
Interface PausableChannel
public interface PausableChannel
A channel that can be paused and resumed.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidClears the buffer of the channel, discarding any items that have been requested from upstream but not yet delivered to the consumer.booleanisPaused()Checks whether the channel is paused.voidpause()Pauses the channel.voidresume()Resumes the channel.
-
Method Details
-
isPaused
boolean isPaused()Checks whether the channel is paused.- Returns:
trueif the channel is paused,falseotherwise
-
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.
-