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
9 package org.opendaylight.openflowjava.protocol.api.connection;
11 import java.util.concurrent.Future;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolListener;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolService;
18 * @author michal.polkorab
20 public interface ConnectionAdapter extends OpenflowProtocolService {
23 * disconnect corresponding switch
24 * @return future set to true, when disconnect completed
26 public Future<Boolean> disconnect();
29 * @return true, if connection to switch is alive
31 public boolean isAlive();
34 * @param messageListener here will be pushed all messages from switch
36 public void setMessageListener(OpenflowProtocolListener messageListener);