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 aReactiveMessageReader
to start reading from a given instant in time.
-
-
Constructor Summary
Constructors Constructor Description InstantStartAtSpec(java.time.Instant instant)
Constructs aInstantStartAtSpec
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.time.Instant
getInstant()
Gets the instant from when to start reading from.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.apache.pulsar.reactive.client.api.StartAtSpec
ofEarliest, ofInstant, ofLatest, ofLatestInclusive, ofMessageId, ofMessageId
-
-
-
-
Constructor Detail
-
InstantStartAtSpec
public InstantStartAtSpec(java.time.Instant instant)
Constructs aInstantStartAtSpec
.- Parameters:
instant
- the instant in time from when to start reading from
-
-
Method Detail
-
getInstant
public java.time.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(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
-
-