Skip navigation links
B C F G H L M N P R S U V W 

B

buildAsync() - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Build a consumer in which the polling thread always does a async commit after all the polled records has been handled.
buildAuto() - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Build a consumer which commits offset automatically at fixed interval.
buildPartialAsync() - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Build a consumer in which the polling thread does a async commits whenever there's any handled consumer records.
buildPartialSync() - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Build a consumer in which the polling thread does a sync commits whenever there's any handled consumer records.
buildSync() - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Build a consumer in which the polling thread always does a sync commit after all the polled records has been handled.

C

CatchAllExceptionConsumerRecordHandler<K,V> - Class in cn.leancloud.kafka.consumer
A wrapper over a ConsumerRecordHandler to catch and swallow all the exceptions throw from the wrapped ConsumerRecordHandler when it failed to handle a consumed record.
CatchAllExceptionConsumerRecordHandler(ConsumerRecordHandler<K, V>) - Constructor for class cn.leancloud.kafka.consumer.CatchAllExceptionConsumerRecordHandler
Constructor for CatchAllExceptionConsumerRecordHandler to just log the failed record when the wrapped handler failed on calling ConsumerRecordHandler.handleRecord(ConsumerRecord).
CatchAllExceptionConsumerRecordHandler(ConsumerRecordHandler<K, V>, BiConsumer<ConsumerRecord<K, V>, Throwable>) - Constructor for class cn.leancloud.kafka.consumer.CatchAllExceptionConsumerRecordHandler
Constructor for CatchAllExceptionConsumerRecordHandler to use a BiConsumer to handle the failed record when the wrapped handler failed on calling ConsumerRecordHandler.handleRecord(ConsumerRecord).
close() - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumer
 
cn.leancloud.kafka.consumer - package cn.leancloud.kafka.consumer
 
ConsumerRecordHandler<K,V> - Interface in cn.leancloud.kafka.consumer
A handler to handle all the consumer records consumed from Kafka broker.
ConsumerSeekDestination - Enum in cn.leancloud.kafka.consumer
The destination for a consumer reset offset operation.

F

forceSeekTo(ConsumerSeekDestination) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
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.

G

gracefulShutdownTimeout(Duration) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Sets the amount of time to wait after calling LcKafkaConsumer.close() for consumed records to handle before actually shutting down.
gracefulShutdownTimeoutMillis(long) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Sets the amount of time to wait after calling LcKafkaConsumer.close() for consumed records to handle before actually shutting down.

H

HandleMessageFailedException - Exception in cn.leancloud.kafka.consumer
Thrown by ConsumerRecordHandler) when the record handler failed to handle a ConsumerRecord.
HandleMessageFailedException() - Constructor for exception cn.leancloud.kafka.consumer.HandleMessageFailedException
 
HandleMessageFailedException(String) - Constructor for exception cn.leancloud.kafka.consumer.HandleMessageFailedException
 
HandleMessageFailedException(Throwable) - Constructor for exception cn.leancloud.kafka.consumer.HandleMessageFailedException
 
HandleMessageFailedException(String, Throwable) - Constructor for exception cn.leancloud.kafka.consumer.HandleMessageFailedException
 
handleRecord(ConsumerRecord<K, V>) - Method in class cn.leancloud.kafka.consumer.CatchAllExceptionConsumerRecordHandler
 
handleRecord(ConsumerRecord<K, V>) - Method in interface cn.leancloud.kafka.consumer.ConsumerRecordHandler
Handle a ConsumerRecord consumed from Kafka broker.
handleRecord(ConsumerRecord<K, V>) - Method in class cn.leancloud.kafka.consumer.RetriableConsumerRecordHandler
 
handleRecordTimeout(Duration) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
The maximum time spent in handling a single ConsumerRecord by calling ConsumerRecordHandler.handleRecord(ConsumerRecord).
handleRecordTimeoutMillis(long) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
The maximum time spent in handling a single ConsumerRecord by calling ConsumerRecordHandler.handleRecord(ConsumerRecord).

L

LcKafkaConsumer<K,V> - Class in cn.leancloud.kafka.consumer
LcKafkaConsumer is a wrapper over Consumer.
LcKafkaConsumerBuilder<K,V> - Class in cn.leancloud.kafka.consumer
A builder used to create a LcKafkaConsumer which uses a KafkaConsumer to consume records from Kafka broker.

M

maxAttemptsForEachSyncCommit(int) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Sets the maximum attempt times for a synchronous commit by calling KafkaConsumer.commitSync().
maxPendingAsyncCommits(int) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
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.
metrics() - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumer
Get the metrics kept by the consumer

N

NamedThreadFactory - Class in cn.leancloud.kafka.consumer
Internal use only, may change in the future.
NamedThreadFactory(String) - Constructor for class cn.leancloud.kafka.consumer.NamedThreadFactory
 
NamedThreadFactory(String, boolean) - Constructor for class cn.leancloud.kafka.consumer.NamedThreadFactory
 
newBuilder(Map<String, Object>, ConsumerRecordHandler<K, V>) - Static method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Create a LcKafkaConsumerBuilder used to build LcKafkaConsumer.
newBuilder(Map<String, Object>, ConsumerRecordHandler<K, V>, Deserializer<K>, Deserializer<V>) - Static method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Create a LcKafkaConsumerBuilder used to build LcKafkaConsumer.
newThread(Runnable) - Method in class cn.leancloud.kafka.consumer.NamedThreadFactory
 
NonNullByDefault - Annotation Type in cn.leancloud.kafka.consumer
An annotation that signifies the return values, parameters and fields are non-nullable by default leveraging the JSR-305 Nonnull annotation.

P

pollTimeout(Duration) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
The pollTimeout is the maximum time spent waiting in polling data from kafka broker if data is not available in the buffer.
pollTimeoutMillis(long) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
The pollTimeout is the maximum time spent waiting in polling data from kafka broker if data is not available in the buffer.

R

recommitInterval(Duration) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
The interval to commit all partitions and it's completed offsets to broker on a non-automatic commit consumer.
recommitIntervalInMillis(long) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
The interval to commit all partitions and it's completed offsets to broker on a non-automatic commit consumer.
RetriableConsumerRecordHandler<K,V> - Class in cn.leancloud.kafka.consumer
A wrapper over a ConsumerRecordHandler to let the wrapped ConsumerRecordHandler try to handle a record in a limited times in case the handling process failed.
RetriableConsumerRecordHandler(ConsumerRecordHandler<K, V>, int) - Constructor for class cn.leancloud.kafka.consumer.RetriableConsumerRecordHandler
Constructor for RetriableConsumerRecordHandler with max retry times limit.
RetriableConsumerRecordHandler(ConsumerRecordHandler<K, V>, int, Duration) - Constructor for class cn.leancloud.kafka.consumer.RetriableConsumerRecordHandler
Constructor for RetriableConsumerRecordHandler with max retry times limit and retry interval.

S

seek(Consumer<?, ?>, Collection<TopicPartition>) - Method in enum cn.leancloud.kafka.consumer.ConsumerSeekDestination
Reset offsets for all the given partitions of a given consumer.
subscribe(Collection<String>) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumer
Subscribe some Kafka topics to consume records from them.
subscribe(Pattern) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumer
Subscribe to all topics matching specified pattern to get dynamically assigned partitions.
syncCommitRetryInterval(Duration) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Sets the amount of time to wait before retry a failed synchronous commit on calling KafkaConsumer.commitSync().
syncCommitRetryIntervalMillis(long) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
Sets the amount of time to wait before retry a failed synchronous commit on calling KafkaConsumer.commitSync().

U

UnsubscribedStatus - Enum in cn.leancloud.kafka.consumer
A status of LcKafkaConsumer when it unsubscribed to all the topics that have subscribed to.

V

valueOf(String) - Static method in enum cn.leancloud.kafka.consumer.ConsumerSeekDestination
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.leancloud.kafka.consumer.UnsubscribedStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum cn.leancloud.kafka.consumer.ConsumerSeekDestination
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.leancloud.kafka.consumer.UnsubscribedStatus
Returns an array containing the constants of this enum type, in the order they are declared.
VisibleForTesting - Annotation Type in cn.leancloud.kafka.consumer
Indicates that the visibility of a type or member has been relaxed to make the code testable.

W

workerPool(ExecutorService, boolean) - Method in class cn.leancloud.kafka.consumer.LcKafkaConsumerBuilder
The thread pool used by consumer to handle the consumed records from Kafka broker.
B C F G H L M N P R S U V W 
Skip navigation links

Copyright © 2020 LeanCloud. All rights reserved.