Record Class DefaultPausableChannelConfiguration
java.lang.Object
java.lang.Record
io.smallrye.reactive.messaging.providers.DefaultPausableChannelConfiguration
- All Implemented Interfaces:
io.smallrye.reactive.messaging.PausableChannelConfiguration
public record DefaultPausableChannelConfiguration(String name, boolean initiallyPaused, boolean lateSubscription, Integer bufferSize, io.smallrye.reactive.messaging.PausableChannelConfiguration.PausableBufferStrategy bufferStrategy)
extends Record
implements io.smallrye.reactive.messaging.PausableChannelConfiguration
Default implementation of
PausableChannelConfiguration.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.smallrye.reactive.messaging.PausableChannelConfiguration
io.smallrye.reactive.messaging.PausableChannelConfiguration.PausableBufferStrategy -
Field Summary
Fields inherited from interface io.smallrye.reactive.messaging.PausableChannelConfiguration
BUFFER_SIZE_PROPERTY, BUFFER_STRATEGY_PROPERTY, INITIALLY_PAUSED_PROPERTY, LATE_SUBSCRIPTION_PROPERTY, PAUSABLE_PROPERTY, PAUSED_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPausableChannelConfiguration(String name, boolean initiallyPaused, boolean lateSubscription, Integer bufferSize, io.smallrye.reactive.messaging.PausableChannelConfiguration.PausableBufferStrategy bufferStrategy) Creates an instance of aDefaultPausableChannelConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebufferSizerecord component.io.smallrye.reactive.messaging.PausableChannelConfiguration.PausableBufferStrategyReturns the value of thebufferStrategyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinitiallyPausedrecord component.booleanReturns the value of thelateSubscriptionrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultPausableChannelConfiguration
public DefaultPausableChannelConfiguration(String name, boolean initiallyPaused, boolean lateSubscription, Integer bufferSize, io.smallrye.reactive.messaging.PausableChannelConfiguration.PausableBufferStrategy bufferStrategy) Creates an instance of aDefaultPausableChannelConfigurationrecord class.- Parameters:
name- the value for thenamerecord componentinitiallyPaused- the value for theinitiallyPausedrecord componentlateSubscription- the value for thelateSubscriptionrecord componentbufferSize- the value for thebufferSizerecord componentbufferStrategy- the value for thebufferStrategyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceio.smallrye.reactive.messaging.PausableChannelConfiguration- Returns:
- the value of the
namerecord component
-
initiallyPaused
public boolean initiallyPaused()Returns the value of theinitiallyPausedrecord component.- Specified by:
initiallyPausedin interfaceio.smallrye.reactive.messaging.PausableChannelConfiguration- Returns:
- the value of the
initiallyPausedrecord component
-
lateSubscription
public boolean lateSubscription()Returns the value of thelateSubscriptionrecord component.- Specified by:
lateSubscriptionin interfaceio.smallrye.reactive.messaging.PausableChannelConfiguration- Returns:
- the value of the
lateSubscriptionrecord component
-
bufferSize
Returns the value of thebufferSizerecord component.- Specified by:
bufferSizein interfaceio.smallrye.reactive.messaging.PausableChannelConfiguration- Returns:
- the value of the
bufferSizerecord component
-
bufferStrategy
public io.smallrye.reactive.messaging.PausableChannelConfiguration.PausableBufferStrategy bufferStrategy()Returns the value of thebufferStrategyrecord component.- Specified by:
bufferStrategyin interfaceio.smallrye.reactive.messaging.PausableChannelConfiguration- Returns:
- the value of the
bufferStrategyrecord component
-