Class CommitApplicationEvent
java.lang.Object
org.apache.kafka.clients.consumer.internals.events.ApplicationEvent
org.apache.kafka.clients.consumer.internals.events.CompletableApplicationEvent<Void>
org.apache.kafka.clients.consumer.internals.events.CommitApplicationEvent
- All Implemented Interfaces:
CompletableEvent<Void>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.kafka.clients.consumer.internals.events.ApplicationEvent
ApplicationEvent.Type -
Constructor Summary
ConstructorsConstructorDescriptionCommitApplicationEvent(Map<org.apache.kafka.common.TopicPartition, OffsetAndMetadata> offsets, Optional<Long> retryTimeoutMs) Create new event to commit offsets. -
Method Summary
Methods inherited from class org.apache.kafka.clients.consumer.internals.events.CompletableApplicationEvent
chain, future, get, toStringBaseMethods inherited from class org.apache.kafka.clients.consumer.internals.events.ApplicationEvent
type
-
Constructor Details
-
CommitApplicationEvent
public CommitApplicationEvent(Map<org.apache.kafka.common.TopicPartition, OffsetAndMetadata> offsets, Optional<Long> retryTimeoutMs) Create new event to commit offsets. If timer is present, the request will be retried on retriable errors until the timer expires (sync commit offsets request). If the timer is not present, the request will be sent without waiting for a response of retrying (async commit offsets request).
-
-
Method Details
-
offsets
-
retryTimeoutMs
-
equals
- Overrides:
equalsin classCompletableApplicationEvent<Void>
-
hashCode
public int hashCode()- Overrides:
hashCodein classCompletableApplicationEvent<Void>
-
toString
- Overrides:
toStringin classCompletableApplicationEvent<Void>
-