Interface ShareConsumer<K,V>
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
KafkaShareConsumer
,MockShareConsumer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledge
(ConsumerRecord<K, V> record) void
acknowledge
(ConsumerRecord<K, V> record, AcknowledgeType type) clientInstanceId
(Duration timeout) void
close()
void
void
commitSync
(Duration timeout) Map<MetricName,
? extends Metric> metrics()
void
void
subscribe
(Collection<String> topics) void
void
wakeup()
-
Method Details
-
subscription
- See Also:
-
subscribe
- See Also:
-
unsubscribe
void unsubscribe()- See Also:
-
poll
- See Also:
-
acknowledge
-
acknowledge
-
commitSync
Map<TopicIdPartition,Optional<KafkaException>> commitSync()- See Also:
-
commitSync
- See Also:
-
commitAsync
void commitAsync()- See Also:
-
setAcknowledgementCommitCallback
-
clientInstanceId
-
metrics
Map<MetricName,? extends Metric> metrics()- See Also:
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- See Also:
-
close
- See Also:
-
wakeup
void wakeup()- See Also:
-