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 a ReactiveMessageReader to start reading from a given message id.
  • Constructor Details

    • MessageIdStartAtSpec

      public MessageIdStartAtSpec(org.apache.pulsar.client.api.MessageId messageId, boolean inclusive)
      Parameters:
      messageId - the message id from which to start reading from
      inclusive - 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object