Stefan Egli created SLING-5621:
----------------------------------
Summary: Add InitDelayingTopologyEventListener, a listener that
can delay the first INIT event
Key: SLING-5621
URL: https://issues.apache.org/jira/browse/SLING-5621
Project: Sling
Issue Type: New Feature
Components: Extensions
Affects Versions: Discovery Commons 1.0.10
Reporter: Stefan Egli
Assignee: Stefan Egli
Fix For: Discovery Commons 1.0.12
InitDelayingTopologyEventListener came up as part of SLING-5560: a
{{TopologyEventListener}} that holds back events until a certain 'startup time'
has passed, after which it will either send a {{TOPOLOGY_INIT}} (if the last
held back event was either {{TOPOLOGY_INIT}}, {{TOPOLOGY_CHANGED}} or
{{PROPERTIES_CHANGED}}) - or it waits for the next such stable event (when it
got a {{TOPOLOGY_CHANGING}} as the last event). This could be of general use,
hence moved it from sling.event to sling.discovery.commons. At this stage this
is a plain listener class - perhaps this could be made something like a
property of a listener at some later point - but at this stage this simple
approach seems good enough.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)