public class KafkaMessageSource extends Object implements StreamableMessageSource<TrackedEventMessage<?>>
| Constructor and Description |
|---|
KafkaMessageSource(Fetcher fetcher)
Initialize the source using the given
fetcher to retrieve messages from the Kafka topic |
| Modifier and Type | Method and Description |
|---|---|
MessageStream<TrackedEventMessage<?>> |
openStream(TrackingToken trackingToken)
Open a stream containing all messages since given tracking token.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateHeadToken, createTailToken, createTokenAt, createTokenSincepublic KafkaMessageSource(Fetcher fetcher)
fetcher to retrieve messages from the Kafka topicfetcher - The fetcher to retrieve messages from Kafkapublic MessageStream<TrackedEventMessage<?>> openStream(TrackingToken trackingToken)
StreamableMessageSourcetrackingToken of null to
open a stream containing all available messages. Note that the returned stream is infinite, so beware of
applying terminal operations to the returned stream.openStream in interface StreamableMessageSource<TrackedEventMessage<?>>trackingToken - object containing the position in the stream or null to open a stream containing all
messagesCopyright © 2010–2018. All rights reserved.