Package io.smallrye.reactive.messaging
Interface PausableChannelConfiguration
public interface PausableChannelConfiguration
A channel that can be paused and resumed.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumStrategy for handling already requested items that arrive while the channel is paused. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the property to configure the buffer size.static final StringThe name of the property to configure the buffer strategy.static final StringThe name of the property to configure whether the channel is initially paused.static final StringThe name of the property to configure whether late subscribers should receive buffered messages.static final StringThe name of the property to configure whether the channel is pausable.static final StringDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionThe maximum buffer size for buffered items when the channel is paused.The buffer strategy if previously requested items are received when the channel is paused.booleanWhether the channel is paused at subscribe time.booleanWhether the subscription is done after the channel is paused.name()The name of the channel.
-
Field Details
-
PAUSABLE_PROPERTY
The name of the property to configure whether the channel is pausable.- See Also:
-
PAUSED_PROPERTY
Deprecated.useINITIALLY_PAUSED_PROPERTYinsteadThe name of the property to configure whether the channel is initially paused.- See Also:
-
INITIALLY_PAUSED_PROPERTY
The name of the property to configure whether the channel is initially paused.- See Also:
-
BUFFER_SIZE_PROPERTY
The name of the property to configure the buffer size.- See Also:
-
LATE_SUBSCRIPTION_PROPERTY
The name of the property to configure whether late subscribers should receive buffered messages.- See Also:
-
BUFFER_STRATEGY_PROPERTY
The name of the property to configure the buffer strategy.- See Also:
-
-
Method Details
-
name
String name()The name of the channel. -
initiallyPaused
boolean initiallyPaused()Whether the channel is paused at subscribe time. Default isfalse. -
bufferSize
Integer bufferSize()The maximum buffer size for buffered items when the channel is paused. -
lateSubscription
boolean lateSubscription()Whether the subscription is done after the channel is paused. Default isfalse. -
bufferStrategy
PausableChannelConfiguration.PausableBufferStrategy bufferStrategy()The buffer strategy if previously requested items are received when the channel is paused. Default isPausableChannelConfiguration.PausableBufferStrategy.BUFFER.
-
INITIALLY_PAUSED_PROPERTYinstead