Fix Jdk8 compatibility
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / md / core / HandshakeListener.java
1 /**
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.openflowplugin.api.openflow.md.core;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;
11
12 /**
13  * @author mirehak
14  *
15  */
16 public interface HandshakeListener {
17     
18     /**
19      * @param featureOutput obtained
20      * @param version negotiated
21      */
22     void onHandshakeSuccessfull(GetFeaturesOutput featureOutput, Short version);
23
24     /**
25      * This method is called when handshake fails for some reason. It allows
26      * all necessary cleanup operations.
27      */
28     void onHandshakeFailure();
29
30 }