Mark AD-SAL interfaces as deprecated
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / packet / IDataPacketService.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 /**
11  * @file   IDataPacketService.java
12  *
13  * @brief  SAL exported Data Packet services
14  *
15  * Data Packet Services SAL provides to the components
16  */
17 package org.opendaylight.controller.sal.packet;
18
19 /**
20  * Data Packet Services SAL provides to the components
21  */
22 @Deprecated
23 public interface IDataPacketService {
24     /**
25      * Transmit a data Packet. Transmission will ONLY happen if the
26      * RawPacket has the OutgoingNodeConnector set else of course
27      * transmission cannot happen.
28      *
29      * @param outPkt Packet to be transmitted out
30      */
31     void transmitDataPacket(RawPacket outPkt);
32
33     /**
34      * Decode a Data Packet received as a raw stream
35      *
36      * @param pkt Raw Packet to be decoded
37      *
38      * @return The formatted Data Packet
39      */
40     Packet decodeDataPacket(RawPacket pkt);
41
42     /**
43      * Encode a Formatted Data Packet in a raw bytestream
44      *
45      * @param pkt Formatted Data Packet to be encoded
46      *
47      * @return a RawPacket representation, good for transmission purpose
48      */
49     RawPacket encodeDataPacket(Packet pkt);
50 }