public ApiFuture<Optional<Cursor>> computeCursorForEventTime(TopicPath path, Partition partition, Timestamp eventTime)
Compute the cursor of the first message with event time greater than or equal to the specified
event time, for a topic partition. If messages are missing an event time, the publish time is
used as a fallback. As event times are user supplied, subsequent messages may have event times
less than the specified event time and should be filtered by the client, if necessary.
If such a message cannot be found, the returned Optional will be empty.
public ApiFuture<Optional<Cursor>> computeCursorForPublishTime(TopicPath path, Partition partition, Timestamp publishTime)
Compute the cursor of the first message with publish time greater than or equal to the
specified publish time, for a topic partition. All messages thereafter are guaranteed to have
publish times greater than or equal to the specified publish time.
If such a message cannot be found, the returned Optional will be empty.
public ApiFuture<Cursor> computeHeadCursor(TopicPath path, Partition partition)
Compute the head cursor for the partition. The head cursor's offset is guaranteed to be before
or equal to all messages which have not yet been acknowledged to be published, and greater than
the offset of any message whose publish has already been acknowledged. It is 0 if there have
never been messages on the partition.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]