/* * Copyright (c) 2017 Inocybe Technologies 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.controller.cluster.datastore.messages; import static java.util.Objects.requireNonNull; import javax.management.ConstructorParameters; /** * Response to a {@link GetInfo} query from a data tree listener actor. * * @author Thomas Pantelis */ public class DataTreeListenerInfo { private final String listener; private final String registeredPath; private final boolean isEnabled; private final long notificationCount; @ConstructorParameters({"listener","registeredPath", "isEnabled", "notificationCount"}) public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled, final long notificationCount) { this.listener = requireNonNull(listener); this.registeredPath = requireNonNull(registeredPath); this.isEnabled = isEnabled; this.notificationCount = notificationCount; } public String getListener() { return listener; } public String getRegisteredPath() { return registeredPath; } public boolean isEnabled() { return isEnabled; } public long getNotificationCount() { return notificationCount; } }