Class InstantStartAtSpec

java.lang.Object
org.apache.pulsar.reactive.client.api.StartAtSpec
org.apache.pulsar.reactive.client.api.InstantStartAtSpec

public final class InstantStartAtSpec extends StartAtSpec
Spec for a ReactiveMessageReader to start reading from a given instant in time.
  • Constructor Details

    • InstantStartAtSpec

      public InstantStartAtSpec(Instant instant)
      Constructs a InstantStartAtSpec.
      Parameters:
      instant - the instant in time from when to start reading from
  • Method Details

    • getInstant

      public Instant getInstant()
      Gets the instant from when to start reading from.
      Returns:
      the instant in time from when to start reading from
    • 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