2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.cluster.datastore.messages;
11 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker;
12 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeListener;
13 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
14 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
16 public class RegisterChangeListener {
17 private final InstanceIdentifier path;
18 private final AsyncDataChangeListener<InstanceIdentifier, NormalizedNode<?, ?>> listener;
19 private final AsyncDataBroker.DataChangeScope scope;
22 public RegisterChangeListener(InstanceIdentifier path, AsyncDataChangeListener<InstanceIdentifier, NormalizedNode<?, ?>> listener, AsyncDataBroker.DataChangeScope scope) {
24 this.listener = listener;
28 public InstanceIdentifier getPath() {
32 public AsyncDataChangeListener<InstanceIdentifier, NormalizedNode<?, ?>> getListener() {
36 public AsyncDataBroker.DataChangeScope getScope() {