Author: stefanegli
Date: Thu Apr 30 10:25:07 2015
New Revision: 1676949

URL: http://svn.apache.org/r1676949
Log:
SLING-4684 : Stress that handleTopologyEvent() should be lock-free and 
terminate quickly

Modified:
    
sling/trunk/bundles/extensions/discovery/api/src/main/java/org/apache/sling/discovery/TopologyEventListener.java

Modified: 
sling/trunk/bundles/extensions/discovery/api/src/main/java/org/apache/sling/discovery/TopologyEventListener.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/api/src/main/java/org/apache/sling/discovery/TopologyEventListener.java?rev=1676949&r1=1676948&r2=1676949&view=diff
==============================================================================
--- 
sling/trunk/bundles/extensions/discovery/api/src/main/java/org/apache/sling/discovery/TopologyEventListener.java
 (original)
+++ 
sling/trunk/bundles/extensions/discovery/api/src/main/java/org/apache/sling/discovery/TopologyEventListener.java
 Thu Apr 30 10:25:07 2015
@@ -34,6 +34,10 @@ public interface TopologyEventListener {
         * Inform the service about an event in the topology - or in the 
discovery
         * of the topology.
         * <p>
+        * Implementors of this method must ensure that this method returns 
quickly
+        * and that no locks are being acquired that could cause deadlocks (ie 
the
+        * framework might call this method holding locks).
+        * <p>
         * The <code>TopologyEvent</code> contains details about what changed.
         * The supported event types are:
         * <ul>


Reply via email to