Class MessageIdStartAtSpec
- java.lang.Object
-
- org.apache.pulsar.reactive.client.api.StartAtSpec
-
- org.apache.pulsar.reactive.client.api.MessageIdStartAtSpec
-
public final class MessageIdStartAtSpec extends StartAtSpec
Spec for aReactiveMessageReader
to start reading from a given message id.
-
-
Constructor Summary
Constructors Constructor Description MessageIdStartAtSpec(org.apache.pulsar.client.api.MessageId messageId, boolean inclusive)
Contructs aMessageIdStartAtSpec
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
org.apache.pulsar.client.api.MessageId
getMessageId()
Gets the message id from which to start reading from.int
hashCode()
boolean
isInclusive()
Gets whether the message with the message id must be included.java.lang.String
toString()
-
Methods inherited from class org.apache.pulsar.reactive.client.api.StartAtSpec
ofEarliest, ofInstant, ofLatest, ofLatestInclusive, ofMessageId, ofMessageId
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-