2 * Copyright (c) 2017 Inocybe Technologies 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
8 package org.opendaylight.controller.cluster.datastore.messages;
10 import static java.util.Objects.requireNonNull;
12 import java.beans.ConstructorProperties;
15 * Response to a {@link GetInfo} query from a data tree listener actor.
17 * @author Thomas Pantelis
19 public class DataTreeListenerInfo {
20 private final String listener;
21 private final String registeredPath;
22 private final boolean isEnabled;
23 private final long notificationCount;
25 @ConstructorProperties({"listener","registeredPath", "isEnabled", "notificationCount"})
26 public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled,
27 final long notificationCount) {
28 this.listener = requireNonNull(listener);
29 this.registeredPath = requireNonNull(registeredPath);
30 this.isEnabled = isEnabled;
31 this.notificationCount = notificationCount;
34 public String getListener() {
38 public String getRegisteredPath() {
39 return registeredPath;
42 public boolean isEnabled() {
46 public long getNotificationCount() {
47 return notificationCount;