TimestampIterator
@UnstableApi
public interface TimestampIterator
ConstantRateTimestampIterator |
A |
A primitive long iterator used for generating sequences of timestamps.
Summary
Public methods |
|
|---|---|
abstract TimestampIterator |
copyOf()Returns fresh copy of the iterator. |
default long |
Returns the last (final) timestamp this iterator generates, in microseconds. |
abstract boolean |
hasNext()Returns whether there is another element. |
abstract long |
next()Returns the next timestamp. |
Public methods
getLastTimestampUs
default long getLastTimestampUs()
Returns the last (final) timestamp this iterator generates, in microseconds.
This method returns TIME_UNSET if the last timestamp is unknown, or when no timestamp will be generated.