public final class PersistedMessageCallback extends Object implements KafkaConsumer.MessageCallback
KafkaConsumer.MessageCallback that persists offset information into a VCTable while
delegating the actual message consumption to another KafkaConsumer.MessageCallback.| Constructor and Description |
|---|
PersistedMessageCallback(KafkaConsumer.MessageCallback delegate,
KafkaConsumerMetaTable metaTable,
int persistThreshold)
Constructs a
PersistedMessageCallback which delegates to the given callback for actual action while
persisting offsets information in to the given meta table when number of messages has been processed based
on the persistThreshold. |
public PersistedMessageCallback(KafkaConsumer.MessageCallback delegate, KafkaConsumerMetaTable metaTable, int persistThreshold)
PersistedMessageCallback which delegates to the given callback for actual action while
persisting offsets information in to the given meta table when number of messages has been processed based
on the persistThreshold.public void onReceived(Iterator<FetchedMessage> messages)
onReceived in interface KafkaConsumer.MessageCallbackpublic void finished()
finished in interface KafkaConsumer.MessageCallbackCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.