Constructor and Description |
---|
KafkaConfiguration() |
Modifier and Type | Method and Description |
---|---|
KafkaConfiguration |
copy()
Returns a copy of this configuration
|
Properties |
createConsumerProperties() |
Properties |
createProducerProperties() |
Integer |
getAutoCommitIntervalMs() |
String |
getAutoCommitOnStop() |
String |
getAutoOffsetReset() |
String |
getBrokers() |
Integer |
getBufferMemorySize() |
Boolean |
getCheckCrcs() |
String |
getClientId() |
String |
getCompressionCodec() |
Integer |
getConnectionMaxIdleMs() |
Integer |
getConsumerRequestTimeoutMs() |
int |
getConsumersCount() |
int |
getConsumerStreams() |
Integer |
getFetchMaxBytes()
The maximum amount of data the server should return for a fetch request
This is not an absolute maximum, if the first message in the first non-empty partition of the fetch is larger than
this value, the message will still be returned to ensure that the consumer can make progress.
|
Integer |
getFetchMinBytes() |
Integer |
getFetchWaitMaxMs() |
String |
getGroupId() |
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
Integer |
getHeartbeatIntervalMs() |
String |
getInterceptorClasses() |
KafkaHeaderDeserializer |
getKafkaHeaderDeserializer() |
KafkaHeaderSerializer |
getKafkaHeaderSerializer() |
Integer |
getKerberosBeforeReloginMinTime() |
String |
getKerberosInitCmd() |
String |
getKerberosPrincipalToLocalRules() |
Double |
getKerberosRenewJitter() |
Double |
getKerberosRenewWindowFactor() |
String |
getKey() |
String |
getKeyDeserializer() |
String |
getKeySerializerClass() |
Integer |
getLingerMs() |
Integer |
getMaxBlockMs() |
Integer |
getMaxInFlightRequest() |
Integer |
getMaxPartitionFetchBytes() |
Long |
getMaxPollIntervalMs() |
Integer |
getMaxPollRecords() |
Integer |
getMaxRequestSize() |
Integer |
getMetadataMaxAgeMs() |
String |
getMetricReporters() |
Integer |
getMetricsSampleWindowMs() |
Integer |
getNoOfMetricsSample() |
org.apache.camel.spi.StateRepository<String,String> |
getOffsetRepository() |
String |
getPartitionAssignor() |
String |
getPartitioner() |
Integer |
getPartitionKey() |
Long |
getPollTimeoutMs() |
Integer |
getProducerBatchSize() |
Integer |
getQueueBufferingMaxMessages() |
Integer |
getReceiveBufferBytes() |
Integer |
getReconnectBackoffMaxMs() |
Integer |
getReconnectBackoffMs() |
String |
getRequestRequiredAcks() |
Integer |
getRequestTimeoutMs() |
Integer |
getRetries() |
Integer |
getRetryBackoffMs() |
String |
getSaslJaasConfig() |
String |
getSaslKerberosServiceName() |
String |
getSaslMechanism() |
String |
getSecurityProtocol() |
String |
getSeekTo() |
Integer |
getSendBufferBytes() |
String |
getSerializerClass() |
Integer |
getSessionTimeoutMs() |
String |
getSslCipherSuites() |
org.apache.camel.util.jsse.SSLContextParameters |
getSslContextParameters() |
String |
getSslEnabledProtocols() |
String |
getSslEndpointAlgorithm() |
String |
getSslKeymanagerAlgorithm() |
String |
getSslKeyPassword() |
String |
getSslKeystoreLocation() |
String |
getSslKeystorePassword() |
String |
getSslKeystoreType() |
String |
getSslProtocol() |
String |
getSslProvider() |
String |
getSslTrustmanagerAlgorithm() |
String |
getSslTruststoreLocation() |
String |
getSslTruststorePassword() |
String |
getSslTruststoreType() |
String |
getTopic() |
String |
getValueDeserializer() |
ExecutorService |
getWorkerPool() |
Integer |
getWorkerPoolCoreSize() |
Integer |
getWorkerPoolMaxSize() |
boolean |
isAllowManualCommit() |
Boolean |
isAutoCommitEnable() |
boolean |
isBreakOnFirstError() |
boolean |
isBridgeEndpoint() |
boolean |
isCircularTopicDetection() |
boolean |
isEnableIdempotence() |
boolean |
isRecordMetadata() |
boolean |
isTopicIsPattern() |
void |
setAllowManualCommit(boolean allowManualCommit)
Whether to allow doing manual commits via
KafkaManualCommit . |
void |
setAutoCommitEnable(Boolean autoCommitEnable)
If true, periodically commit to ZooKeeper the offset of messages already fetched by the consumer.
|
void |
setAutoCommitIntervalMs(Integer autoCommitIntervalMs)
The frequency in ms that the consumer offsets are committed to zookeeper.
|
void |
setAutoCommitOnStop(String autoCommitOnStop)
Whether to perform an explicit auto commit when the consumer stops to ensure the broker
has a commit from the last consumed message.
|
void |
setAutoOffsetReset(String autoOffsetReset)
What to do when there is no initial offset in ZooKeeper or if an offset is out of range:
smallest : automatically reset the offset to the smallest offset
largest : automatically reset the offset to the largest offset
fail: throw exception to the consumer
|
void |
setBreakOnFirstError(boolean breakOnFirstError)
This options controls what happens when a consumer is processing an exchange and it fails.
|
void |
setBridgeEndpoint(boolean bridgeEndpoint)
If the option is true, then KafkaProducer will ignore the KafkaConstants.TOPIC header setting of the inbound message.
|
void |
setBrokers(String brokers)
URL of the Kafka brokers to use.
|
void |
setBufferMemorySize(Integer bufferMemorySize)
The total bytes of memory the producer can use to buffer records waiting to be sent to the server.
|
void |
setCheckCrcs(Boolean checkCrcs)
Automatically check the CRC32 of the records consumed.
|
void |
setCircularTopicDetection(boolean circularTopicDetection)
If the option is true, then KafkaProducer will detect if the message is attempted to be sent back to the same topic
it may come from, if the message was original from a kafka consumer.
|
void |
setClientId(String clientId)
The client id is a user-specified string sent in each request to help trace calls.
|
void |
setCompressionCodec(String compressionCodec)
This parameter allows you to specify the compression codec for all data generated by this producer.
|
void |
setConnectionMaxIdleMs(Integer connectionMaxIdleMs)
Close idle connections after the number of milliseconds specified by this config.
|
void |
setConsumerRequestTimeoutMs(Integer consumerRequestTimeoutMs)
The configuration controls the maximum amount of time the client will wait for the response
of a request.
|
void |
setConsumersCount(int consumersCount)
The number of consumers that connect to kafka server
|
void |
setConsumerStreams(int consumerStreams)
Number of concurrent consumers on the consumer
|
void |
setEnableIdempotence(boolean enableIdempotence)
If set to 'true' the producer will ensure that exactly one copy of each message is written in the stream.
|
void |
setFetchMaxBytes(Integer fetchMaxBytes) |
void |
setFetchMinBytes(Integer fetchMinBytes)
The minimum amount of data the server should return for a fetch request.
|
void |
setFetchWaitMaxMs(Integer fetchWaitMaxMs)
The maximum amount of time the server will block before answering the fetch request if there isn't sufficient data to immediately satisfy fetch.min.bytes
|
void |
setGroupId(String groupId)
A string that uniquely identifies the group of consumer processes to which this consumer belongs.
|
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message.
|
void |
setHeartbeatIntervalMs(Integer heartbeatIntervalMs)
The expected time between heartbeats to the consumer coordinator when using Kafka's group management facilities.
|
void |
setInterceptorClasses(String interceptorClasses)
Sets interceptors for producer or consumers.
|
void |
setKafkaHeaderDeserializer(KafkaHeaderDeserializer kafkaHeaderDeserializer)
Sets custom KafkaHeaderDeserializer for deserialization kafka headers values to camel headers values.
|
void |
setKafkaHeaderSerializer(KafkaHeaderSerializer kafkaHeaderSerializer)
Sets custom KafkaHeaderDeserializer for serialization camel headers values to kafka headers values.
|
void |
setKerberosBeforeReloginMinTime(Integer kerberosBeforeReloginMinTime)
Login thread sleep time between refresh attempts.
|
void |
setKerberosInitCmd(String kerberosInitCmd)
Kerberos kinit command path.
|
void |
setKerberosPrincipalToLocalRules(String kerberosPrincipalToLocalRules)
A list of rules for mapping from principal names to short names (typically operating system usernames).
|
void |
setKerberosRenewJitter(Double kerberosRenewJitter)
Percentage of random jitter added to the renewal time.
|
void |
setKerberosRenewWindowFactor(Double kerberosRenewWindowFactor)
Login thread will sleep until the specified window factor of time from last
refresh to ticket's expiry has been reached, at which time it will try to renew the ticket.
|
void |
setKey(String key)
The record key (or null if no key is specified).
|
void |
setKeyDeserializer(String keyDeserializer)
Deserializer class for key that implements the Deserializer interface.
|
void |
setKeySerializerClass(String keySerializerClass)
The serializer class for keys (defaults to the same as for messages if nothing is given).
|
void |
setLingerMs(Integer lingerMs)
The producer groups together any records that arrive in between request transmissions into a single batched request.
|
void |
setMaxBlockMs(Integer maxBlockMs)
The configuration controls how long sending to kafka will block.
|
void |
setMaxInFlightRequest(Integer maxInFlightRequest)
The maximum number of unacknowledged requests the client will send on a single connection before blocking.
|
void |
setMaxPartitionFetchBytes(Integer maxPartitionFetchBytes)
The maximum amount of data per-partition the server will return.
|
void |
setMaxPollIntervalMs(Long maxPollIntervalMs)
The maximum delay between invocations of poll() when using consumer group management.
|
void |
setMaxPollRecords(Integer maxPollRecords)
The maximum number of records returned in a single call to poll()
|
void |
setMaxRequestSize(Integer maxRequestSize)
The maximum size of a request.
|
void |
setMetadataMaxAgeMs(Integer metadataMaxAgeMs)
The period of time in milliseconds after which we force a refresh of metadata even if we haven't seen any partition leadership
changes to proactively discover any new brokers or partitions.
|
void |
setMetricReporters(String metricReporters)
A list of classes to use as metrics reporters.
|
void |
setMetricsSampleWindowMs(Integer metricsSampleWindowMs)
The number of samples maintained to compute metrics.
|
void |
setNoOfMetricsSample(Integer noOfMetricsSample)
The number of samples maintained to compute metrics.
|
void |
setOffsetRepository(org.apache.camel.spi.StateRepository<String,String> offsetRepository)
The offset repository to use in order to locally store the offset of each partition of the topic.
|
void |
setPartitionAssignor(String partitionAssignor)
The class name of the partition assignment strategy that the client will use to distribute
partition ownership amongst consumer instances when group management is used
|
void |
setPartitioner(String partitioner)
The partitioner class for partitioning messages amongst sub-topics.
|
void |
setPartitionKey(Integer partitionKey)
The partition to which the record will be sent (or null if no partition was specified).
|
void |
setPollTimeoutMs(Long pollTimeoutMs)
The timeout used when polling the KafkaConsumer.
|
void |
setProducerBatchSize(Integer producerBatchSize)
The producer will attempt to batch records together into fewer requests whenever multiple records are being sent to the same partition.
|
void |
setQueueBufferingMaxMessages(Integer queueBufferingMaxMessages)
The maximum number of unsent messages that can be queued up the producer when using async
mode before either the producer must be blocked or data must be dropped.
|
void |
setReceiveBufferBytes(Integer receiveBufferBytes)
The size of the TCP receive buffer (SO_RCVBUF) to use when reading data.
|
void |
setReconnectBackoffMaxMs(Integer reconnectBackoffMaxMs)
The maximum amount of time in milliseconds to wait when reconnecting to a
broker that has repeatedly failed to connect.
|
void |
setReconnectBackoffMs(Integer reconnectBackoffMs)
The amount of time to wait before attempting to reconnect to a given host.
|
void |
setRecordMetadata(boolean recordMetadata)
Whether the producer should store the
RecordMetadata results from sending to Kafka. |
void |
setRequestRequiredAcks(String requestRequiredAcks)
The number of acknowledgments the producer requires the leader to have received before considering a request complete.
|
void |
setRequestTimeoutMs(Integer requestTimeoutMs)
The amount of time the broker will wait trying to meet the request.required.acks requirement before sending back an error to the client.
|
void |
setRetries(Integer retries)
Setting a value greater than zero will cause the client to resend any record whose send fails with a potentially transient error.
|
void |
setRetryBackoffMs(Integer retryBackoffMs)
Before each retry, the producer refreshes the metadata of relevant topics to see if a new leader has been elected.
|
void |
setSaslJaasConfig(String saslMechanism)
Expose the kafka sasl.jaas.config parameter
Example:
org.apache.kafka.common.security.plain.PlainLoginModule required username="USERNAME" password="PASSWORD";
|
void |
setSaslKerberosServiceName(String saslKerberosServiceName)
The Kerberos principal name that Kafka runs as.
|
void |
setSaslMechanism(String saslMechanism)
The Simple Authentication and Security Layer (SASL) Mechanism used.
|
void |
setSecurityProtocol(String securityProtocol)
Protocol used to communicate with brokers.
|
void |
setSeekTo(String seekTo)
Set if KafkaConsumer will read from beginning or end on startup:
beginning : read from beginning
end : read from end
This is replacing the earlier property seekToBeginning
|
void |
setSendBufferBytes(Integer sendBufferBytes)
Socket write buffer size
|
void |
setSerializerClass(String serializerClass)
The serializer class for messages.
|
void |
setSessionTimeoutMs(Integer sessionTimeoutMs)
The timeout used to detect failures when using Kafka's group management facilities.
|
void |
setSslCipherSuites(String sslCipherSuites)
A list of cipher suites.
|
void |
setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
SSL configuration using a Camel
SSLContextParameters object. |
void |
setSslEnabledProtocols(String sslEnabledProtocols)
The list of protocols enabled for SSL connections.
|
void |
setSslEndpointAlgorithm(String sslEndpointAlgorithm)
The endpoint identification algorithm to validate server hostname using server certificate.
|
void |
setSslKeymanagerAlgorithm(String sslKeymanagerAlgorithm)
The algorithm used by key manager factory for SSL connections.
|
void |
setSslKeyPassword(String sslKeyPassword)
The password of the private key in the key store file.
|
void |
setSslKeystoreLocation(String sslKeystoreLocation)
The location of the key store file.
|
void |
setSslKeystorePassword(String sslKeystorePassword)
The store password for the key store file.This is optional for client and only needed
if ssl.keystore.location is configured.
|
void |
setSslKeystoreType(String sslKeystoreType)
The file format of the key store file.
|
void |
setSslProtocol(String sslProtocol)
The SSL protocol used to generate the SSLContext.
|
void |
setSslProvider(String sslProvider)
The name of the security provider used for SSL connections.
|
void |
setSslTrustmanagerAlgorithm(String sslTrustmanagerAlgorithm)
The algorithm used by trust manager factory for SSL connections.
|
void |
setSslTruststoreLocation(String sslTruststoreLocation)
The location of the trust store file.
|
void |
setSslTruststorePassword(String sslTruststorePassword)
The password for the trust store file.
|
void |
setSslTruststoreType(String sslTruststoreType)
The file format of the trust store file.
|
void |
setTopic(String topic)
Name of the topic to use.
|
void |
setTopicIsPattern(boolean topicIsPattern)
Whether the topic is a pattern (regular expression).
|
void |
setValueDeserializer(String valueDeserializer)
Deserializer class for value that implements the Deserializer interface.
|
void |
setWorkerPool(ExecutorService workerPool)
To use a custom worker pool for continue routing
Exchange after kafka server has acknowledge
the message that was sent to it from KafkaProducer using asynchronous non-blocking processing. |
void |
setWorkerPoolCoreSize(Integer workerPoolCoreSize)
Number of core threads for the worker pool for continue routing
Exchange after kafka server has acknowledge
the message that was sent to it from KafkaProducer using asynchronous non-blocking processing. |
void |
setWorkerPoolMaxSize(Integer workerPoolMaxSize)
Maximum number of threads for the worker pool for continue routing
Exchange after kafka server has acknowledge
the message that was sent to it from KafkaProducer using asynchronous non-blocking processing. |
public KafkaConfiguration copy()
public Properties createProducerProperties()
public Properties createConsumerProperties()
public boolean isTopicIsPattern()
public void setTopicIsPattern(boolean topicIsPattern)
public String getGroupId()
public void setGroupId(String groupId)
public boolean isBridgeEndpoint()
public void setBridgeEndpoint(boolean bridgeEndpoint)
public boolean isCircularTopicDetection()
public void setCircularTopicDetection(boolean circularTopicDetection)
public String getPartitioner()
public void setPartitioner(String partitioner)
public String getTopic()
public void setTopic(String topic)
public int getConsumerStreams()
public void setConsumerStreams(int consumerStreams)
public int getConsumersCount()
public void setConsumersCount(int consumersCount)
public String getClientId()
public void setClientId(String clientId)
public Boolean isAutoCommitEnable()
public void setAutoCommitEnable(Boolean autoCommitEnable)
public boolean isAllowManualCommit()
public void setAllowManualCommit(boolean allowManualCommit)
KafkaManualCommit
.
If this option is enabled then an instance of KafkaManualCommit
is stored on the Exchange
message header,
which allows end users to access this API and perform manual offset commits via the Kafka consumer.public org.apache.camel.spi.StateRepository<String,String> getOffsetRepository()
public void setOffsetRepository(org.apache.camel.spi.StateRepository<String,String> offsetRepository)
public Integer getAutoCommitIntervalMs()
public void setAutoCommitIntervalMs(Integer autoCommitIntervalMs)
public Integer getFetchMinBytes()
public void setFetchMinBytes(Integer fetchMinBytes)
public Integer getFetchMaxBytes()
public void setFetchMaxBytes(Integer fetchMaxBytes)
public Integer getFetchWaitMaxMs()
public void setFetchWaitMaxMs(Integer fetchWaitMaxMs)
public String getAutoOffsetReset()
public void setAutoOffsetReset(String autoOffsetReset)
public String getAutoCommitOnStop()
public void setAutoCommitOnStop(String autoCommitOnStop)
public boolean isBreakOnFirstError()
public void setBreakOnFirstError(boolean breakOnFirstError)
public String getBrokers()
public void setBrokers(String brokers)
public String getCompressionCodec()
public void setCompressionCodec(String compressionCodec)
public Integer getRetryBackoffMs()
public void setRetryBackoffMs(Integer retryBackoffMs)
public Integer getSendBufferBytes()
public void setSendBufferBytes(Integer sendBufferBytes)
public Integer getRequestTimeoutMs()
public void setRequestTimeoutMs(Integer requestTimeoutMs)
public Integer getQueueBufferingMaxMessages()
public void setQueueBufferingMaxMessages(Integer queueBufferingMaxMessages)
public String getSerializerClass()
public void setSerializerClass(String serializerClass)
public String getKeySerializerClass()
public void setKeySerializerClass(String keySerializerClass)
public String getKerberosInitCmd()
public void setKerberosInitCmd(String kerberosInitCmd)
public Integer getKerberosBeforeReloginMinTime()
public void setKerberosBeforeReloginMinTime(Integer kerberosBeforeReloginMinTime)
public Double getKerberosRenewJitter()
public void setKerberosRenewJitter(Double kerberosRenewJitter)
public Double getKerberosRenewWindowFactor()
public void setKerberosRenewWindowFactor(Double kerberosRenewWindowFactor)
public String getKerberosPrincipalToLocalRules()
public void setKerberosPrincipalToLocalRules(String kerberosPrincipalToLocalRules)
public String getSslCipherSuites()
public void setSslCipherSuites(String sslCipherSuites)
public String getSslEndpointAlgorithm()
public void setSslEndpointAlgorithm(String sslEndpointAlgorithm)
public String getSslKeymanagerAlgorithm()
public void setSslKeymanagerAlgorithm(String sslKeymanagerAlgorithm)
public String getSslTrustmanagerAlgorithm()
public void setSslTrustmanagerAlgorithm(String sslTrustmanagerAlgorithm)
public String getSslEnabledProtocols()
public void setSslEnabledProtocols(String sslEnabledProtocols)
public String getSslKeystoreType()
public void setSslKeystoreType(String sslKeystoreType)
public String getSslProtocol()
public void setSslProtocol(String sslProtocol)
public String getSslProvider()
public void setSslProvider(String sslProvider)
public String getSslTruststoreType()
public void setSslTruststoreType(String sslTruststoreType)
public String getSaslKerberosServiceName()
public void setSaslKerberosServiceName(String saslKerberosServiceName)
public String getSaslMechanism()
public void setSaslMechanism(String saslMechanism)
public String getSaslJaasConfig()
public void setSaslJaasConfig(String saslMechanism)
public String getSecurityProtocol()
public void setSecurityProtocol(String securityProtocol)
public org.apache.camel.util.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
SSLContextParameters
object. If configured it's applied before the other SSL endpoint parameters.public String getSslKeyPassword()
public void setSslKeyPassword(String sslKeyPassword)
public String getSslKeystoreLocation()
public void setSslKeystoreLocation(String sslKeystoreLocation)
public String getSslKeystorePassword()
public void setSslKeystorePassword(String sslKeystorePassword)
public String getSslTruststoreLocation()
public void setSslTruststoreLocation(String sslTruststoreLocation)
public String getSslTruststorePassword()
public void setSslTruststorePassword(String sslTruststorePassword)
public Integer getBufferMemorySize()
public void setBufferMemorySize(Integer bufferMemorySize)
public String getKey()
public void setKey(String key)
KafkaConstants.KEY
public Integer getPartitionKey()
public void setPartitionKey(Integer partitionKey)
KafkaConstants.PARTITION_KEY
public String getRequestRequiredAcks()
public void setRequestRequiredAcks(String requestRequiredAcks)
public Integer getRetries()
public void setRetries(Integer retries)
public Integer getProducerBatchSize()
public void setProducerBatchSize(Integer producerBatchSize)
public Integer getConnectionMaxIdleMs()
public void setConnectionMaxIdleMs(Integer connectionMaxIdleMs)
public Integer getLingerMs()
public void setLingerMs(Integer lingerMs)
public Integer getMaxBlockMs()
public void setMaxBlockMs(Integer maxBlockMs)
public Integer getMaxRequestSize()
public void setMaxRequestSize(Integer maxRequestSize)
public Integer getReceiveBufferBytes()
public void setReceiveBufferBytes(Integer receiveBufferBytes)
public Integer getMaxInFlightRequest()
public void setMaxInFlightRequest(Integer maxInFlightRequest)
public Integer getMetadataMaxAgeMs()
public void setMetadataMaxAgeMs(Integer metadataMaxAgeMs)
public String getMetricReporters()
public void setMetricReporters(String metricReporters)
public Integer getNoOfMetricsSample()
public void setNoOfMetricsSample(Integer noOfMetricsSample)
public Integer getMetricsSampleWindowMs()
public void setMetricsSampleWindowMs(Integer metricsSampleWindowMs)
public Integer getReconnectBackoffMs()
public void setReconnectBackoffMs(Integer reconnectBackoffMs)
public Integer getHeartbeatIntervalMs()
public void setHeartbeatIntervalMs(Integer heartbeatIntervalMs)
public Integer getMaxPartitionFetchBytes()
public void setMaxPartitionFetchBytes(Integer maxPartitionFetchBytes)
public Integer getSessionTimeoutMs()
public void setSessionTimeoutMs(Integer sessionTimeoutMs)
public Integer getMaxPollRecords()
public void setMaxPollRecords(Integer maxPollRecords)
public Long getPollTimeoutMs()
public void setPollTimeoutMs(Long pollTimeoutMs)
public Long getMaxPollIntervalMs()
public void setMaxPollIntervalMs(Long maxPollIntervalMs)
public String getPartitionAssignor()
public void setPartitionAssignor(String partitionAssignor)
public Integer getConsumerRequestTimeoutMs()
public void setConsumerRequestTimeoutMs(Integer consumerRequestTimeoutMs)
public Boolean getCheckCrcs()
public void setCheckCrcs(Boolean checkCrcs)
public String getKeyDeserializer()
public void setKeyDeserializer(String keyDeserializer)
public String getValueDeserializer()
public void setValueDeserializer(String valueDeserializer)
public String getSeekTo()
public void setSeekTo(String seekTo)
public ExecutorService getWorkerPool()
public void setWorkerPool(ExecutorService workerPool)
Exchange
after kafka server has acknowledge
the message that was sent to it from KafkaProducer
using asynchronous non-blocking processing.public Integer getWorkerPoolCoreSize()
public void setWorkerPoolCoreSize(Integer workerPoolCoreSize)
Exchange
after kafka server has acknowledge
the message that was sent to it from KafkaProducer
using asynchronous non-blocking processing.public Integer getWorkerPoolMaxSize()
public void setWorkerPoolMaxSize(Integer workerPoolMaxSize)
Exchange
after kafka server has acknowledge
the message that was sent to it from KafkaProducer
using asynchronous non-blocking processing.public boolean isRecordMetadata()
public void setRecordMetadata(boolean recordMetadata)
RecordMetadata
results from sending to Kafka.
The results are stored in a List
containing the RecordMetadata
metadata's.
The list is stored on a header with the key KafkaConstants.KAFKA_RECORDMETA
public String getInterceptorClasses()
public void setInterceptorClasses(String interceptorClasses)
ProducerInterceptor
Consumer interceptors have to be classes implementing ConsumerInterceptor
Note that if you use Producer interceptor on a consumer it will throw a class cast exception in runtimepublic boolean isEnableIdempotence()
public void setEnableIdempotence(boolean enableIdempotence)
public Integer getReconnectBackoffMaxMs()
public void setReconnectBackoffMaxMs(Integer reconnectBackoffMaxMs)
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
setHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
public KafkaHeaderDeserializer getKafkaHeaderDeserializer()
public void setKafkaHeaderDeserializer(KafkaHeaderDeserializer kafkaHeaderDeserializer)
kafkaHeaderDeserializer
- custom kafka header deserializer to be usedpublic KafkaHeaderSerializer getKafkaHeaderSerializer()
public void setKafkaHeaderSerializer(KafkaHeaderSerializer kafkaHeaderSerializer)
kafkaHeaderSerializer
- custom kafka header serializer to be usedApache Camel