Record Class ConsumerProducerBuilder
java.lang.Object
java.lang.Record
com.bakdata.kafka.consumerproducer.ConsumerProducerBuilder
public record ConsumerProducerBuilder(@NonNull ConsumerProducerTopicConfig topics, @NonNull ConsumerBuilder consumerBuilder, @NonNull ProducerBuilder producerBuilder)
extends Record
Provides all runtime configurations when running a
ConsumerProducerApp-
Constructor Summary
ConstructorsConstructorDescriptionConsumerProducerBuilder(@NonNull ConsumerProducerTopicConfig topics, @NonNull ConsumerBuilder consumerBuilder, @NonNull ProducerBuilder producerBuilder) Creates an instance of aConsumerProducerBuilderrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull ConsumerBuilderReturns the value of theconsumerBuilderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull ProducerBuilderReturns the value of theproducerBuilderrecord component.@NonNull ConsumerProducerTopicConfigtopics()Returns the value of thetopicsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsumerProducerBuilder
public ConsumerProducerBuilder(@NonNull @NonNull ConsumerProducerTopicConfig topics, @NonNull @NonNull ConsumerBuilder consumerBuilder, @NonNull @NonNull ProducerBuilder producerBuilder) Creates an instance of aConsumerProducerBuilderrecord class.- Parameters:
topics- the value for thetopicsrecord componentconsumerBuilder- the value for theconsumerBuilderrecord componentproducerBuilder- the value for theproducerBuilderrecord 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). -
topics
Returns the value of thetopicsrecord component.- Returns:
- the value of the
topicsrecord component
-
consumerBuilder
Returns the value of theconsumerBuilderrecord component.- Returns:
- the value of the
consumerBuilderrecord component
-
producerBuilder
Returns the value of theproducerBuilderrecord component.- Returns:
- the value of the
producerBuilderrecord component
-