2 * Copyright (c) 2014 Brocade Communications 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.yangtools.util.concurrent;
11 import java.beans.ConstructorProperties;
14 * Class used by the {@link QueuedNotificationManager} that contains a snapshot of notification
15 * queue statistics for a listener.
17 * @author Thomas Pantelis
18 * @see QueuedNotificationManager
20 public class ListenerNotificationQueueStats {
22 private final String listenerClassName;
23 private final int currentQueueSize;
25 @ConstructorProperties({ "listenerClassName","currentQueueSize" })
26 public ListenerNotificationQueueStats( final String listenerClassName, final int currentQueueSize ) {
27 this.listenerClassName = listenerClassName;
28 this.currentQueueSize = currentQueueSize;
32 * Returns the name of the listener class.
34 public String getListenerClassName() {
35 return listenerClassName;
39 * Returns the current notification queue size.
41 public int getCurrentQueueSize() {
42 return currentQueueSize;