Record Class KafkaConsumerConfig
java.lang.Object
java.lang.Record
ru.tinkoff.kora.kafka.common.config.KafkaConsumerConfig
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaConsumerConfig(Properties driverProperties, List<String> topics, Pattern topicsPattern, List<String> partitions, ru.tinkoff.kora.common.util.Either<Duration, String> offset, Duration pollTimeout, Duration backoffTimeout, int threads) Creates an instance of aKafkaConsumerConfigrecord class.KafkaConsumerConfig(Properties driverProperties, List<String> topics, Pattern topicsPattern, List<String> partitions, ru.tinkoff.kora.common.util.Either<Duration, String> offset, Duration pollTimeout, Duration backoffTimeout, Integer threads) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackoffTimeoutrecord component.Returns the value of thedriverPropertiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.Returns the value of thepartitionsrecord component.Returns the value of thepollTimeoutrecord component.intthreads()Returns the value of thethreadsrecord component.topics()Returns the value of thetopicsrecord component.Returns the value of thetopicsPatternrecord component.final StringtoString()Returns a string representation of this record class.withDriverPropertiesOverrides(Map<String, Object> overrides)
-
Constructor Details
-
KafkaConsumerConfig
public KafkaConsumerConfig(Properties driverProperties, @Nullable List<String> topics, @Nullable Pattern topicsPattern, @Nullable List<String> partitions, @Nullable ru.tinkoff.kora.common.util.Either<Duration, String> offset, @Nullable Duration pollTimeout, @Nullable Duration backoffTimeout, @Nullable Integer threads) -
KafkaConsumerConfig
public KafkaConsumerConfig(Properties driverProperties, @Nullable List<String> topics, @Nullable Pattern topicsPattern, @Nullable List<String> partitions, ru.tinkoff.kora.common.util.Either<Duration, String> offset, Duration pollTimeout, Duration backoffTimeout, int threads) Creates an instance of aKafkaConsumerConfigrecord class.- Parameters:
driverProperties- the value for thedriverPropertiesrecord componenttopics- the value for thetopicsrecord componenttopicsPattern- the value for thetopicsPatternrecord componentpartitions- the value for thepartitionsrecord componentoffset- the value for theoffsetrecord componentpollTimeout- the value for thepollTimeoutrecord componentbackoffTimeout- the value for thebackoffTimeoutrecord componentthreads- the value for thethreadsrecord component
-
-
Method Details
-
withDriverPropertiesOverrides
-
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 '=='. -
driverProperties
Returns the value of thedriverPropertiesrecord component.- Returns:
- the value of the
driverPropertiesrecord component
-
topics
Returns the value of thetopicsrecord component.- Returns:
- the value of the
topicsrecord component
-
topicsPattern
Returns the value of thetopicsPatternrecord component.- Returns:
- the value of the
topicsPatternrecord component
-
partitions
Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
pollTimeout
Returns the value of thepollTimeoutrecord component.- Returns:
- the value of the
pollTimeoutrecord component
-
backoffTimeout
Returns the value of thebackoffTimeoutrecord component.- Returns:
- the value of the
backoffTimeoutrecord component
-
threads
public int threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-