Record Class KafkaConsumerConfig.RetryConfig
java.lang.Object
java.lang.Record
org.sdase.commons.spring.boot.kafka.config.KafkaConsumerConfig.RetryConfig
- Enclosing class:
- KafkaConsumerConfig
-
Constructor Summary
ConstructorsConstructorDescriptionRetryConfig
(@NotNull Integer maxRetries, @NotNull Long initialBackoffInterval, @NotNull Long maxBackoffInterval, @NotNull Long backoffMultiplier) Creates an instance of aRetryConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Long
Returns the value of thebackoffMultiplier
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Long
Returns the value of theinitialBackoffInterval
record component.@NotNull Long
Returns the value of themaxBackoffInterval
record component.@NotNull Integer
Returns the value of themaxRetries
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RetryConfig
public RetryConfig(@NotNull @NotNull Integer maxRetries, @NotNull @NotNull Long initialBackoffInterval, @NotNull @NotNull Long maxBackoffInterval, @NotNull @NotNull Long backoffMultiplier) Creates an instance of aRetryConfig
record class.- Parameters:
maxRetries
- the value for themaxRetries
record componentinitialBackoffInterval
- the value for theinitialBackoffInterval
record componentmaxBackoffInterval
- the value for themaxBackoffInterval
record componentbackoffMultiplier
- the value for thebackoffMultiplier
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
maxRetries
Returns the value of themaxRetries
record component.- Returns:
- the value of the
maxRetries
record component
-
initialBackoffInterval
Returns the value of theinitialBackoffInterval
record component.- Returns:
- the value of the
initialBackoffInterval
record component
-
maxBackoffInterval
Returns the value of themaxBackoffInterval
record component.- Returns:
- the value of the
maxBackoffInterval
record component
-
backoffMultiplier
Returns the value of thebackoffMultiplier
record component.- Returns:
- the value of the
backoffMultiplier
record component
-