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, int lingerMs, int batchSize, int bufferMemory, String compressionType, int connectionsMaxIdleMs, int deliveryTimeoutMs, boolean enableIdempotence, String interceptorClasses, int maxBlockMs, int maxInFlightRequestsPerConnection, int maxRequestSize, int metadataMaxAgeMs, int requestTimeoutMs, int retries, int retryBackoffMs, int transactionTimeoutMs, String transactionalId, String clientId, String keySerializer, String valueSerializer)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaEmitterConfig(String topic, String bootstrapServers, String acks, int lingerMs, int batchSize, int bufferMemory, String compressionType, int connectionsMaxIdleMs, int deliveryTimeoutMs, boolean enableIdempotence, String interceptorClasses, int maxBlockMs, int maxInFlightRequestsPerConnection, int maxRequestSize, int metadataMaxAgeMs, int requestTimeoutMs, int retries, int retryBackoffMs, int 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.intReturns the value of thebatchSizerecord component.Returns the value of thebootstrapServersrecord component.intReturns the value of thebufferMemoryrecord component.clientId()Returns the value of theclientIdrecord component.Returns the value of thecompressionTyperecord component.intReturns the value of theconnectionsMaxIdleMsrecord component.intReturns the value of thedeliveryTimeoutMsrecord component.booleanReturns 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.intlingerMs()Returns the value of thelingerMsrecord component.static KafkaEmitterConfigintReturns the value of themaxBlockMsrecord component.intReturns the value of themaxInFlightRequestsPerConnectionrecord component.intReturns the value of themaxRequestSizerecord component.intReturns the value of themetadataMaxAgeMsrecord component.intReturns the value of therequestTimeoutMsrecord component.intretries()Returns the value of theretriesrecord component.intReturns 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.intReturns the value of thetransactionTimeoutMsrecord component.voidvalidate()Returns the value of thevalueSerializerrecord component.
-
Constructor Details
-
KafkaEmitterConfig
public KafkaEmitterConfig(String topic, String bootstrapServers, String acks, int lingerMs, int batchSize, int bufferMemory, String compressionType, int connectionsMaxIdleMs, int deliveryTimeoutMs, boolean enableIdempotence, String interceptorClasses, int maxBlockMs, int maxInFlightRequestsPerConnection, int maxRequestSize, int metadataMaxAgeMs, int requestTimeoutMs, int retries, int retryBackoffMs, int 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
public int lingerMs()Returns the value of thelingerMsrecord component.- Returns:
- the value of the
lingerMsrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
bufferMemory
public int 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
public int connectionsMaxIdleMs()Returns the value of theconnectionsMaxIdleMsrecord component.- Returns:
- the value of the
connectionsMaxIdleMsrecord component
-
deliveryTimeoutMs
public int deliveryTimeoutMs()Returns the value of thedeliveryTimeoutMsrecord component.- Returns:
- the value of the
deliveryTimeoutMsrecord component
-
enableIdempotence
public boolean 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
public int maxBlockMs()Returns the value of themaxBlockMsrecord component.- Returns:
- the value of the
maxBlockMsrecord component
-
maxInFlightRequestsPerConnection
public int maxInFlightRequestsPerConnection()Returns the value of themaxInFlightRequestsPerConnectionrecord component.- Returns:
- the value of the
maxInFlightRequestsPerConnectionrecord component
-
maxRequestSize
public int maxRequestSize()Returns the value of themaxRequestSizerecord component.- Returns:
- the value of the
maxRequestSizerecord component
-
metadataMaxAgeMs
public int metadataMaxAgeMs()Returns the value of themetadataMaxAgeMsrecord component.- Returns:
- the value of the
metadataMaxAgeMsrecord component
-
requestTimeoutMs
public int requestTimeoutMs()Returns the value of therequestTimeoutMsrecord component.- Returns:
- the value of the
requestTimeoutMsrecord component
-
retries
public int retries()Returns the value of theretriesrecord component.- Returns:
- the value of the
retriesrecord component
-
retryBackoffMs
public int retryBackoffMs()Returns the value of theretryBackoffMsrecord component.- Returns:
- the value of the
retryBackoffMsrecord component
-
transactionTimeoutMs
public int 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
-