public class MessageIdStopCursor extends Object implements StopCursor
Comparable.compareTo(Object) for
compare the consuming message with the given message id.| Constructor and Description |
|---|
MessageIdStopCursor(org.apache.pulsar.client.api.MessageId messageId) |
MessageIdStopCursor(org.apache.pulsar.client.api.MessageId messageId,
boolean exclusive) |
| Modifier and Type | Method and Description |
|---|---|
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, waitafterMessageId, atEventTime, atMessageId, atPublishTime, defaultStopCursor, latest, never, openpublic MessageIdStopCursor(org.apache.pulsar.client.api.MessageId messageId)
public MessageIdStopCursor(org.apache.pulsar.client.api.MessageId messageId,
boolean exclusive)
public boolean shouldStop(org.apache.pulsar.client.api.Message<?> message)
StopCursorshouldStop in interface StopCursorCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.