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.List;
12 import org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductor;
14 import com.google.common.util.concurrent.SettableFuture;
18 * @param <IN> source type
19 * @param <OUT> result type
22 public class TicketImpl<IN, OUT> implements Ticket<IN, OUT> {
25 private ConnectionConductor conductor;
26 private SettableFuture<List<OUT>> future;
32 future = SettableFuture.create();
36 public SettableFuture<List<OUT>> getResult() {
44 public IN getMessage() {
49 * @param message the message to set
51 public void setMessage(IN message) {
52 this.message = message;
56 * @return the conductor
59 public ConnectionConductor getConductor() {
64 * @param conductor the conductor to set
66 public void setConductor(ConnectionConductor conductor) {
67 this.conductor = conductor;