Add ClusteredDOMDataTreeChangeListener interface 67/50267/5
authorTom Pantelis <tpanteli@brocade.com>
Wed, 11 Jan 2017 06:31:50 +0000 (01:31 -0500)
committerRobert Varga <nite@hq.sk>
Tue, 17 Oct 2017 11:49:37 +0000 (11:49 +0000)
Change-Id: Ifa302db331ae7518c5327f7616171390b0e64eed
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/ClusteredDOMDataTreeChangeListener.java [new file with mode: 0644]

diff --git a/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/ClusteredDOMDataTreeChangeListener.java b/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/ClusteredDOMDataTreeChangeListener.java
new file mode 100644 (file)
index 0000000..23f9c18
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2017 Brocade Communications Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.mdsal.dom.api;
+
+/**
+ * ClusteredDOMDataTreeChangeListener is a marker interface to enable data tree change notifications on all
+ * instances in a cluster where this listener is registered.
+ *
+ * <p>
+ * Applications should implement ClusteredDOMDataTreeChangeListener instead of {@link DOMDataTreeChangeListener},
+ * if they want to listen for data tree change notifications on any node of a clustered data store.
+ * {@link DOMDataTreeChangeListener} enables notifications only at the leader of the data store.
+ *
+ * @author Thomas Pantelis
+ */
+public interface ClusteredDOMDataTreeChangeListener extends DOMDataTreeChangeListener {
+}