2 * Copyright (c) 2013 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
8 package org.opendaylight.openflowplugin.openflow.md.core;
10 import org.opendaylight.openflowplugin.api.openflow.md.queue.PopListener;
11 import org.slf4j.Logger;
12 import org.slf4j.LoggerFactory;
16 * @param <T> resulting type
19 public class PopListenerCountingImpl<T> implements PopListener<T> {
21 private static final Logger LOG = LoggerFactory
22 .getLogger(PopListenerCountingImpl.class);
23 private int count = 0;
26 public synchronized void onPop(T processedMessage) {
27 LOG.debug("message popped: {}", processedMessage);
35 public int getCount() {