new OffsetSpec(timestamp)
Define an OffsetSpec to list offsets at. Either a timestamp can be used, or else, one of the special, pre-defined values (EARLIEST, LATEST, MAX_TIMESTAMP) can be used while passing an OffsetSpec to listOffsets.
Parameters:
Name | Type | Description |
---|---|---|
timestamp |
number | The timestamp to list offsets at. |
Members
(static) EARLIEST
Special OffsetSpec value denoting the earliest offset for a topic partition.
(static) LATEST
Special OffsetSpec value denoting the latest offset for a topic partition.
(static) MAX_TIMESTAMP
Specific OffsetSpec value used to retrieve the offset with the largest timestamp of a partition as message timestamps can be specified client side this may not match the log end offset returned by OffsetSpec.LATEST.