Use ByteBuf.readRetainedSlice()
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / handlers / DeviceConnectedHandler.java
1 /*
2  * Copyright (c) 2015 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
9 package org.opendaylight.openflowplugin.api.openflow.device.handlers;
10
11 import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext;
12 import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionStatus;
13
14 /**
15  * Represents handler for new connected device that will propagate information about
16  * established connection with device. It is important for correct order in device connection chain.
17  */
18 public interface DeviceConnectedHandler {
19
20     /**
21      * Method is used to propagate information about established connection with device.
22      * It propagates connected device's connection context.
23      */
24     ConnectionStatus deviceConnected(ConnectionContext connectionContext)
25     ;
26
27 }