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.queue;
10 import java.util.Collection;
13 import org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductor;
14 import org.opendaylight.openflowplugin.openflow.md.core.IMDMessageTranslator;
15 import org.opendaylight.openflowplugin.openflow.md.core.TranslatorKey;
19 * @param <IN> source type
20 * @param <OUT> result type
22 public interface QueueKeeper<IN, OUT> {
27 void addPopListener(PopListener<OUT> listener);
31 * @return removed listener
33 boolean removePopListener(PopListener<OUT> listener);
36 * @param translatorMapping
38 void setTranslatorMapping(Map<TranslatorKey, Collection<IMDMessageTranslator<IN, OUT>>> translatorMapping);
41 * @param registeredMessageClazz registered message type
45 void push(Class<? extends IN> registeredMessageClazz, IN message,
46 ConnectionConductor conductor);