Class MessageIdStartAtSpec
java.lang.Object
org.apache.pulsar.reactive.client.api.StartAtSpec
org.apache.pulsar.reactive.client.api.MessageIdStartAtSpec
Spec for a
ReactiveMessageReader
to start reading from a given message id.-
Constructor Summary
ConstructorsConstructorDescriptionMessageIdStartAtSpec
(org.apache.pulsar.client.api.MessageId messageId, boolean inclusive) Contructs aMessageIdStartAtSpec
. -
Method Summary
Methods inherited from class org.apache.pulsar.reactive.client.api.StartAtSpec
ofEarliest, ofInstant, ofLatest, ofLatestInclusive, ofMessageId, ofMessageId
-
Constructor Details
-
MessageIdStartAtSpec
public MessageIdStartAtSpec(org.apache.pulsar.client.api.MessageId messageId, boolean inclusive) Contructs aMessageIdStartAtSpec
.- Parameters:
messageId
- the message id from which to start reading frominclusive
- true to include the message with the message id
-
-
Method Details
-
getMessageId
public org.apache.pulsar.client.api.MessageId getMessageId()Gets the message id from which to start reading from.- Returns:
- the message id from which to start reading from
-
isInclusive
public boolean isInclusive()Gets whether the message with the message id must be included.- Returns:
- true if the message with the message id must be included
-
equals
-
hashCode
public int hashCode() -
toString
-