/** * Copyright (c) 2013 Cisco Systems, Inc. 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.openflowplugin.openflow.md.queue; import java.util.Collection; import java.util.List; import java.util.Map; import org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductor; import org.opendaylight.openflowplugin.openflow.md.core.IMDMessageTranslator; import org.opendaylight.openflowplugin.openflow.md.core.TranslatorKey; /** * @author mirehak * @param source type * @param result type */ public interface QueueKeeper { public enum QueueType {DEFAULT, UNORDERED} /** * @param translatorMapping */ void setTranslatorMapping(Map>>> translatorMapping); /** * @param message * @param conductor */ void push(IN message, ConnectionConductor conductor); /** * @param message * @param conductor * @param ordered - true if message order matters, false otherwise */ void push(IN message, ConnectionConductor conductor, QueueType queueType); /** * @param popListenersMapping the popListenersMapping to set */ void setPopListenersMapping(Map, Collection>> popListenersMapping); }