From: Devin Avery Date: Thu, 10 Jul 2014 18:05:43 +0000 (-0400) Subject: Clarified the AsyncDataChangeEvent message - stated you must not block the thread. X-Git-Tag: release/helium~497^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=dfa2da6098a0c423c0a7bf45b7229931cea67f85;ds=sidebyside Clarified the AsyncDataChangeEvent message - stated you must not block the thread. Change-Id: I311b7c37f5848beb351d59fc830798d10302a3bb Signed-off-by: Devin Avery --- diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncDataChangeListener.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncDataChangeListener.java index dca5200d39..0bdaf7bf37 100644 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncDataChangeListener.java +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncDataChangeListener.java @@ -41,9 +41,12 @@ public interface AsyncDataChangeListener

, D> extends EventList * This initial event will contain all preexisting data as created. * *

- * Note that this method may be invoked from a shared thread pool, so - * implementations SHOULD NOT perform CPU-intensive operations and they - * definitely MUST NOT invoke any potentially blocking operations. + * Note: This method may be invoked from a shared thread pool. + *

  • Implementations SHOULD NOT perform CPU-intensive operations on the calling thread. + *
  • Implementations MUST NOT block the calling thread - to do so could lead to deadlock + * scenarios. + * + *
    * * @param change * Data Change Event being delivered.