public class LatestMessageStopCursor extends Object implements StopCursor
PulsarPartitionSplitReaderBase instead of by the PulsarSourceEnumerator. We would include the latest message available in Pulsar by default.| Constructor and Description |
|---|
LatestMessageStopCursor() |
LatestMessageStopCursor(boolean exclusive) |
| Modifier and Type | Method and Description |
|---|---|
void |
open(org.apache.pulsar.client.admin.PulsarAdmin admin,
TopicPartition partition)
The open method for the cursor initializer.
|
boolean |
shouldStop(org.apache.pulsar.client.api.Message<?> message)
Determine whether to pause consumption on the current message by the returned boolean value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterEventTime, afterMessageId, afterPublishTime, atEventTime, atMessageId, atPublishTime, defaultStopCursor, latest, neverpublic LatestMessageStopCursor()
public LatestMessageStopCursor(boolean exclusive)
public void open(org.apache.pulsar.client.admin.PulsarAdmin admin,
TopicPartition partition)
StopCursoropen in interface StopCursorpublic boolean shouldStop(org.apache.pulsar.client.api.Message<?> message)
StopCursorshouldStop in interface StopCursorCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.