You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Timothee Maret (JIRA)" <ji...@apache.org> on 2018/11/01 15:47:00 UTC
[jira] [Commented] (SLING-8065) Introduce ReadOnlyDistributionQueue
API
[ https://issues.apache.org/jira/browse/SLING-8065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16671780#comment-16671780 ]
Timothee Maret commented on SLING-8065:
---------------------------------------
Opened
https://github.com/apache/sling-org-apache-sling-distribution-core/pull/14
[~mpetria] review welcome.
> Introduce ReadOnlyDistributionQueue API
> ---------------------------------------
>
> Key: SLING-8065
> URL: https://issues.apache.org/jira/browse/SLING-8065
> Project: Sling
> Issue Type: Improvement
> Components: Content Distribution
> Affects Versions: Content Distribution Core 0.3.4
> Reporter: Timothee Maret
> Assignee: Timothee Maret
> Priority: Major
> Fix For: Content Distribution Core 0.3.6
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We currently export an [SPI|https://github.com/apache/sling-org-apache-sling-distribution-core/tree/master/src/main/java/org/apache/sling/distribution/queue/spi] with a fully editable queue, [DistributionQueue|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/queue/spi/DistributionQueue.java].
> Some distribution queue implementation are read-only meaning that they don't provide the ability to add/remove items. Example of such read-only queue is an implementation on top of an append only messaging service.
> In this issue, I suggest to introduce add and export the {{ReadOnlyDistributionQueue}} interface. The existing read-only method signatures from {{DistributionQueue}} would be moved from {{DistributionQueue}} to {{ReadOnlyDistributionQueue}}. {{DistributionQueue}} would extend from {{ReadOnlyDistributionQueue}}. This change is backward compatible.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)