| Modifier and Type | Method and Description |
|---|---|
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.forceSeekTo(ConsumerSeekDestination destination)
After subscribed to any topic, force seek offsets for every assigned partitions to beginning or end no matter
where the recorded offsets for the group of this consumer are.
|
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.gracefulShutdownTimeout(Duration gracefulShutdownTimeout)
Sets the amount of time to wait after calling
LcKafkaConsumer.close() for
consumed records to handle before actually shutting down. |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)
Sets the amount of time to wait after calling
LcKafkaConsumer.close() for
consumed records to handle before actually shutting down. |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.handleRecordTimeout(Duration handleRecordTimeout)
The maximum time spent in handling a single
ConsumerRecord by calling
ConsumerRecordHandler.handleRecord(ConsumerRecord). |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.handleRecordTimeoutMillis(long handleRecordTimeoutMillis)
The maximum time spent in handling a single
ConsumerRecord by calling
ConsumerRecordHandler.handleRecord(ConsumerRecord). |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.maxAttemptsForEachSyncCommit(int maxAttemptsForEachSyncCommit)
Sets the maximum attempt times for a synchronous commit by calling
KafkaConsumer.commitSync(). |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.maxPendingAsyncCommits(int maxPendingAsyncCommits)
When using async consumer to commit offset asynchronously, this argument can force consumer to do a synchronous
commit after there's already this (
maxPendingAsyncCommits) many async commits on the fly without
response from broker. |
static <K,V> LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.newBuilder(Map<String,Object> kafkaConfigs,
ConsumerRecordHandler<K,V> consumerRecordHandler)
Create a
LcKafkaConsumerBuilder used to build LcKafkaConsumer. |
static <K,V> LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.newBuilder(Map<String,Object> kafkaConfigs,
ConsumerRecordHandler<K,V> consumerRecordHandler,
org.apache.kafka.common.serialization.Deserializer<K> keyDeserializer,
org.apache.kafka.common.serialization.Deserializer<V> valueDeserializer)
Create a
LcKafkaConsumerBuilder used to build LcKafkaConsumer. |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.pollTimeout(Duration pollTimeout)
The pollTimeout is the maximum time spent waiting in polling data from kafka broker if data is not available in
the buffer.
|
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.pollTimeoutMillis(long pollTimeoutMillis)
The pollTimeout is the maximum time spent waiting in polling data from kafka broker if data is not available in
the buffer.
|
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.recommitInterval(Duration recommitInterval)
The interval to commit all partitions and it's completed offsets to broker on a non-automatic commit consumer.
|
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.recommitIntervalInMillis(long recommitIntervalInMillis)
The interval to commit all partitions and it's completed offsets to broker on a non-automatic commit consumer.
|
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.syncCommitRetryInterval(Duration syncCommitRetryInterval)
Sets the amount of time to wait before retry a failed synchronous commit on calling
KafkaConsumer.commitSync(). |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.syncCommitRetryIntervalMillis(long syncCommitRetryIntervalMillis)
Sets the amount of time to wait before retry a failed synchronous commit on calling
KafkaConsumer.commitSync(). |
LcKafkaConsumerBuilder<K,V> |
LcKafkaConsumerBuilder.workerPool(ExecutorService workerPool,
boolean shutdownOnStop)
The thread pool used by consumer to handle the consumed records from Kafka broker.
|
Copyright © 2020 LeanCloud. All rights reserved.