Renamed packages to org.opendaylight.openflowjava.protocol.impl.*
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / OFSerializer.java
1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */\r
2 package org.opendaylight.openflowjava.protocol.impl.serialization;\r
3 \r
4 import io.netty.buffer.ByteBuf;\r
5 \r
6 import org.opendaylight.yangtools.yang.binding.DataObject;\r
7 \r
8 /**\r
9  * @author michal.polkorab\r
10  *\r
11  * @param <E> message type\r
12  */\r
13 public interface OFSerializer <E extends DataObject> {\r
14 \r
15     /**\r
16      * Transforms POJO/DTO into byte message (ByteBuf).\r
17      * @param version version of used OF Protocol\r
18      * @param out ByteBuf used for output\r
19      * @param message message that will be transformed into ByteBuf\r
20      */\r
21     public abstract void messageToBuffer(short version, ByteBuf out, E message);\r
22 }\r