You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Christian Schneider (Jira)" <ji...@apache.org> on 2021/12/20 12:43:00 UTC
[jira] [Created] (SLING-11028) Support relative offsets
Christian Schneider created SLING-11028:
-------------------------------------------
Summary: Support relative offsets
Key: SLING-11028
URL: https://issues.apache.org/jira/browse/SLING-11028
Project: Sling
Issue Type: Improvement
Components: Content Distribution
Affects Versions: Content Distribution Journal Messages 0.3.0
Reporter: Christian Schneider
Assignee: Christian Schneider
Fix For: Content Distribution Journal Messages 0.3.2
In some cases it is necessary to specify the offset to start from not absolutely but relative to earliest or latest of the topic partition.
This change introduces MessagingProvider.assignTo(Reset reset, long relativeOffset). This for example allows to start by rereading the latest message using:
assignTo(Reset.latest, -1)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)