public static interface KafkaConsumer.MessageCallback
Modifier and Type | Method and Description |
---|---|
void |
finished()
Invoked when message consumption is stopped.
|
long |
onReceived(Iterator<FetchedMessage> messages)
Invoked when new messages is available.
|
long onReceived(Iterator<FetchedMessage> messages)
messages
- Iterator of new messages. The FetchedMessage
instance maybe reused in the Iterator
and across different invocation.void finished()
onReceived(java.util.Iterator)
will get triggered.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.