Class TopologyHandler
java.lang.Object
org.apache.sling.event.impl.jobs.config.TopologyHandler
- All Implemented Interfaces:
Runnable,org.apache.sling.discovery.TopologyEventListener
public class TopologyHandler
extends Object
implements org.apache.sling.discovery.TopologyEventListener, Runnable
This topology handler is handling the topology change events asynchronously
and processes them by queuing them.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWe need a holder class to be able to put something into the queue to stop it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate()protected voidvoidhandleTopologyEvent(org.apache.sling.discovery.TopologyEvent event) voidrun()
-
Constructor Details
-
TopologyHandler
public TopologyHandler()
-
-
Method Details
-
activate
protected void activate() -
deactivate
protected void deactivate() -
handleTopologyEvent
public void handleTopologyEvent(org.apache.sling.discovery.TopologyEvent event) - Specified by:
handleTopologyEventin interfaceorg.apache.sling.discovery.TopologyEventListener
-
run
public void run()
-