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:36:00 UTC
[jira] [Created] (SLING-8065) Introduce ReadOnlyDistributionQueue
API
Timothee Maret created SLING-8065:
-------------------------------------
Summary: 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
Fix For: Content Distribution Core 0.3.6
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)