Deprecate DCL in favor of DTCL 52/37452/2
authorRyan Goulding <ryandgoulding@gmail.com>
Mon, 11 Apr 2016 19:29:35 +0000 (15:29 -0400)
committerTony Tkacik <ttkacik@cisco.com>
Tue, 12 Apr 2016 14:14:00 +0000 (14:14 +0000)
The DataTreeChangeListener abstraction offers many performance and semantic
advantages over DataChangeListener.  Although there is no concrete date for DCL
removal, @Deprecated annotations are added to DCL API and impl classes to
dissuade their use.  An example of how to transition from DCL to DTCL is
included in this patch:

https://git.opendaylight.org/gerrit/#/c/35209/

This patch is a follow up from comments made here:

https://git.opendaylight.org/gerrit/#/c/36970/

Change-Id: I505bd60ea4642733526c5cfea3850bc0c6ee6798
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncDataChangeListener.java
opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataChangeListener.java

index 0bdaf7bf3766736aa76337a1e6e772e036ed0cb5..53194b372b87cc3fff14adaa806eec74c124eba5 100644 (file)
@@ -30,6 +30,7 @@ import org.opendaylight.yangtools.concepts.Path;
  * @param <D>
  *            Type of data (payload), which represents data payload
  */
+@Deprecated
 public interface AsyncDataChangeListener<P extends Path<P>, D> extends EventListener {
     /**
      *
index c46529bd0271cf0267efcf2286458a3ed8a5db79..e171db671f99ef1e77de96a15e24d11c537b0e68 100644 (file)
@@ -14,7 +14,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 /**
  * DOMDataChangeListener enables data change notifications only at leader of the datastore shard.
  */
-
+@Deprecated
 public interface DOMDataChangeListener extends AsyncDataChangeListener<YangInstanceIdentifier, NormalizedNode<?, ?>> {
 
 }