Record Class KafkaEmitterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.kafka.KafkaEmitterConfig
public record KafkaEmitterConfig(String topic, String bootstrapServers, String acks, Integer lingerMs, Integer batchSize, Integer bufferMemory, String compressionType, Integer connectionsMaxIdleMs, Integer deliveryTimeoutMs, Boolean enableIdempotence, String interceptorClasses, Integer maxBlockMs, Integer maxInFlightRequestsPerConnection, Integer maxRequestSize, Integer metadataMaxAgeMs, Integer requestTimeoutMs, Integer retries, Integer retryBackoffMs, Integer transactionTimeoutMs, String transactionalId, String clientId, String keySerializer, String valueSerializer)
extends Record
Boxed: an unset value stays null so safePut omits the property and Kafka applies its own default.
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaEmitterConfig(String topic, String bootstrapServers, String acks, Integer lingerMs, Integer batchSize, Integer bufferMemory, String compressionType, Integer connectionsMaxIdleMs, Integer deliveryTimeoutMs, Boolean enableIdempotence, String interceptorClasses, Integer maxBlockMs, Integer maxInFlightRequestsPerConnection, Integer maxRequestSize, Integer metadataMaxAgeMs, Integer requestTimeoutMs, Integer retries, Integer retryBackoffMs, Integer transactionTimeoutMs, String transactionalId, String clientId, String keySerializer, String valueSerializer) Creates an instance of aKafkaEmitterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacks()Returns the value of theacksrecord component.Returns the value of thebatchSizerecord component.Returns the value of thebootstrapServersrecord component.Returns the value of thebufferMemoryrecord component.clientId()Returns the value of theclientIdrecord component.Returns the value of thecompressionTyperecord component.Returns the value of theconnectionsMaxIdleMsrecord component.Returns the value of thedeliveryTimeoutMsrecord component.Returns the value of theenableIdempotencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterceptorClassesrecord component.Returns the value of thekeySerializerrecord component.lingerMs()Returns the value of thelingerMsrecord component.static KafkaEmitterConfigReturns the value of themaxBlockMsrecord component.Returns the value of themaxInFlightRequestsPerConnectionrecord component.Returns the value of themaxRequestSizerecord component.Returns the value of themetadataMaxAgeMsrecord component.Returns the value of therequestTimeoutMsrecord component.retries()Returns the value of theretriesrecord component.Returns the value of theretryBackoffMsrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionalIdrecord component.Returns the value of thetransactionTimeoutMsrecord component.voidvalidate()Returns the value of thevalueSerializerrecord component.
-
Constructor Details
-
KafkaEmitterConfig
public KafkaEmitterConfig(String topic, String bootstrapServers, String acks, Integer lingerMs, Integer batchSize, Integer bufferMemory, String compressionType, Integer connectionsMaxIdleMs, Integer deliveryTimeoutMs, Boolean enableIdempotence, String interceptorClasses, Integer maxBlockMs, Integer maxInFlightRequestsPerConnection, Integer maxRequestSize, Integer metadataMaxAgeMs, Integer requestTimeoutMs, Integer retries, Integer retryBackoffMs, Integer transactionTimeoutMs, String transactionalId, String clientId, String keySerializer, String valueSerializer) Creates an instance of aKafkaEmitterConfigrecord class.- Parameters:
topic- the value for thetopicrecord componentbootstrapServers- the value for thebootstrapServersrecord componentacks- the value for theacksrecord componentlingerMs- the value for thelingerMsrecord componentbatchSize- the value for thebatchSizerecord componentbufferMemory- the value for thebufferMemoryrecord componentcompressionType- the value for thecompressionTyperecord componentconnectionsMaxIdleMs- the value for theconnectionsMaxIdleMsrecord componentdeliveryTimeoutMs- the value for thedeliveryTimeoutMsrecord componentenableIdempotence- the value for theenableIdempotencerecord componentinterceptorClasses- the value for theinterceptorClassesrecord componentmaxBlockMs- the value for themaxBlockMsrecord componentmaxInFlightRequestsPerConnection- the value for themaxInFlightRequestsPerConnectionrecord componentmaxRequestSize- the value for themaxRequestSizerecord componentmetadataMaxAgeMs- the value for themetadataMaxAgeMsrecord componentrequestTimeoutMs- the value for therequestTimeoutMsrecord componentretries- the value for theretriesrecord componentretryBackoffMs- the value for theretryBackoffMsrecord componenttransactionTimeoutMs- the value for thetransactionTimeoutMsrecord componenttransactionalId- the value for thetransactionalIdrecord componentclientId- the value for theclientIdrecord componentkeySerializer- the value for thekeySerializerrecord componentvalueSerializer- the value for thevalueSerializerrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
validate
- Throws:
TikaConfigException
-
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). -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
bootstrapServers
Returns the value of thebootstrapServersrecord component.- Returns:
- the value of the
bootstrapServersrecord component
-
acks
Returns the value of theacksrecord component.- Returns:
- the value of the
acksrecord component
-
lingerMs
Returns the value of thelingerMsrecord component.- Returns:
- the value of the
lingerMsrecord component
-
batchSize
Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
bufferMemory
Returns the value of thebufferMemoryrecord component.- Returns:
- the value of the
bufferMemoryrecord component
-
compressionType
Returns the value of thecompressionTyperecord component.- Returns:
- the value of the
compressionTyperecord component
-
connectionsMaxIdleMs
Returns the value of theconnectionsMaxIdleMsrecord component.- Returns:
- the value of the
connectionsMaxIdleMsrecord component
-
deliveryTimeoutMs
Returns the value of thedeliveryTimeoutMsrecord component.- Returns:
- the value of the
deliveryTimeoutMsrecord component
-
enableIdempotence
Returns the value of theenableIdempotencerecord component.- Returns:
- the value of the
enableIdempotencerecord component
-
interceptorClasses
Returns the value of theinterceptorClassesrecord component.- Returns:
- the value of the
interceptorClassesrecord component
-
maxBlockMs
Returns the value of themaxBlockMsrecord component.- Returns:
- the value of the
maxBlockMsrecord component
-
maxInFlightRequestsPerConnection
Returns the value of themaxInFlightRequestsPerConnectionrecord component.- Returns:
- the value of the
maxInFlightRequestsPerConnectionrecord component
-
maxRequestSize
Returns the value of themaxRequestSizerecord component.- Returns:
- the value of the
maxRequestSizerecord component
-
metadataMaxAgeMs
Returns the value of themetadataMaxAgeMsrecord component.- Returns:
- the value of the
metadataMaxAgeMsrecord component
-
requestTimeoutMs
Returns the value of therequestTimeoutMsrecord component.- Returns:
- the value of the
requestTimeoutMsrecord component
-
retries
Returns the value of theretriesrecord component.- Returns:
- the value of the
retriesrecord component
-
retryBackoffMs
Returns the value of theretryBackoffMsrecord component.- Returns:
- the value of the
retryBackoffMsrecord component
-
transactionTimeoutMs
Returns the value of thetransactionTimeoutMsrecord component.- Returns:
- the value of the
transactionTimeoutMsrecord component
-
transactionalId
Returns the value of thetransactionalIdrecord component.- Returns:
- the value of the
transactionalIdrecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
keySerializer
Returns the value of thekeySerializerrecord component.- Returns:
- the value of the
keySerializerrecord component
-
valueSerializer
Returns the value of thevalueSerializerrecord component.- Returns:
- the value of the
valueSerializerrecord component
-