| Package | Description |
|---|---|
| net.soundvibe.kafka.config.consumer |
| Modifier and Type | Method and Description |
|---|---|
static ConsumerConfigBuilder |
ConsumerConfigBuilder.create() |
ConsumerConfigBuilder |
ConsumerConfigBuilder.withAllowAutoCreateTopics(boolean allowAutoCreateTopics)
Allow automatic topic creation on the broker when
subscribing to or assigning a topic.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withAutoCommitInterval(Duration autoCommitInterval)
The frequency in milliseconds that the consumer offsets are auto-committed to Kafka if
enable.auto.commit is set to true. |
ConsumerConfigBuilder |
ConsumerConfigBuilder.withAutoOffsetReset(org.apache.kafka.clients.consumer.OffsetResetStrategy autoOffsetReset)
What to do when there is no initial offset in Kafka or if the current offset does not exist any more on the server (e.g.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withCheckCRCs(boolean checkCRCs)
Automatically check the CRC32 of the records consumed.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withDefaultApiTimeout(Duration defaultApiTimeout)
Specifies the timeout for consumer APIs that could block.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withEnableAutoCommit(boolean enableAutoCommit)
If true the consumer's offset will be periodically committed in the background.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withExcludeInternalTopics(boolean excludeInternalTopics)
Whether internal topics matching a subscribed pattern should
be excluded from the subscription.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withFetchMaxBytes(int fetchMaxBytes)
The maximum amount of data the server should return for a fetch request.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withFetchMaxWait(Duration fetchMaxWait)
The maximum amount of time the server will block before answering the fetch request if there isn't sufficient data to immediately satisfy the requirement given by fetch.min.bytes.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withFetchMinBytes(int fetchMinBytes)
The minimum amount of data the server should return for a fetch request.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withGroupId(String groupId)
A unique string that identifies the consumer group this consumer belongs to.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withGroupInstanceId(String groupInstanceId)
A unique identifier of the consumer instance provided by end user.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withHeartbeatInterval(Duration heartbeatInterval)
The expected time between heartbeats to the consumer
coordinator when using Kafka's group management facilities.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withInterceptorClasses(Class<? extends org.apache.kafka.clients.consumer.ConsumerInterceptor>... interceptorClasses)
A list of classes to use as interceptors.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withIsolationLevel(org.apache.kafka.common.requests.IsolationLevel isolationLevel)
Controls how to read messages written transactionally.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withKeyDeserializer(org.apache.kafka.common.serialization.Deserializer<?> keyDeserializer)
Deserializer class for key that implements the
org.apache.kafka.common.serialization.Deserializer interface. |
ConsumerConfigBuilder |
ConsumerConfigBuilder.withMaxPartitionFetchBytes(int maxPartitionFetchBytes)
The maximum amount of data per-partition the server
will return.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withMaxPollInterval(Duration maxPollInterval)
The maximum delay between invocations of poll() when using
consumer group management.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withMaxPollRecords(int maxPollRecords)
The maximum number of records returned in a single call to poll().
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withPartitionAssignmentStrategy(Class<? extends org.apache.kafka.clients.consumer.internals.PartitionAssignor> partitionAssignmentStrategy)
The class of the partition assignment strategy that the client will use to distribute partition ownership amongst consumer instances when group management is used.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withSessionTimeout(Duration sessionTimeout)
The timeout used to detect consumer failures when using
Kafka's group management facility.
|
ConsumerConfigBuilder |
ConsumerConfigBuilder.withValueDeserializer(org.apache.kafka.common.serialization.Deserializer<?> valueDeserializer)
Deserializer class for value that implements the
org.apache.kafka.common.serialization.Deserializer interface. |
Copyright © 2019. All rights reserved.