public final class OffsetAndTimestamp
extends java.lang.Object
Constructor and Description |
---|
OffsetAndTimestamp(long offset,
long timestamp) |
OffsetAndTimestamp(long offset,
long timestamp,
java.util.Optional<java.lang.Integer> leaderEpoch) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.Optional<java.lang.Integer> |
leaderEpoch()
Get the leader epoch corresponding to the offset that was found (if one exists).
|
long |
offset() |
long |
timestamp() |
java.lang.String |
toString() |
public OffsetAndTimestamp(long offset, long timestamp)
public OffsetAndTimestamp(long offset, long timestamp, java.util.Optional<java.lang.Integer> leaderEpoch)
public long timestamp()
public long offset()
public java.util.Optional<java.lang.Integer> leaderEpoch()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object