1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
3 package org.opendaylight.openflowjava.protocol.api.connection;
5 import java.util.concurrent.Future;
7 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolListener;
8 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolService;
12 * @author michal.polkorab
14 public interface ConnectionAdapter extends OpenflowProtocolService {
17 * disconnect corresponding switch
18 * @return future set to true, when disconnect completed
20 public Future<Boolean> disconnect();
23 * @return true, if connection to switch is alive
25 public boolean isAlive();
28 * @param messageListener here will be pushed all messages from switch
30 public void setMessageListener(OpenflowProtocolListener messageListener);