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 com.google.common.base.Preconditions;
11 import java.beans.ConstructorProperties;
14 * Response to a {@link GetInfo} query from a data tree listener actor.
16 * @author Thomas Pantelis
18 public class DataTreeListenerInfo {
19 private final String listener;
20 private final String registeredPath;
21 private final boolean isEnabled;
22 private final long notificationCount;
24 @ConstructorProperties({"listener","registeredPath", "isEnabled", "notificationCount"})
25 public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled,
26 final long notificationCount) {
27 this.listener = Preconditions.checkNotNull(listener);
28 this.registeredPath = Preconditions.checkNotNull(registeredPath);
29 this.isEnabled = isEnabled;
30 this.notificationCount = notificationCount;
33 public String getListener() {
37 public String getRegisteredPath() {
38 return registeredPath;
41 public boolean isEnabled() {
45 public long getNotificationCount() {
46 return notificationCount;