52c2a4de4c1d148fed606fd787b8b765f5c1a172
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / CodeKeyMaker.java
1 /*\r
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.openflowjava.protocol.impl.util;\r
10 \r
11 import org.opendaylight.openflowjava.protocol.api.extensibility.MessageCodeKey;\r
12 \r
13 import io.netty.buffer.ByteBuf;\r
14 \r
15 /**\r
16  * @author michal.polkorab\r
17  */\r
18 public interface CodeKeyMaker {\r
19 \r
20     /**\r
21      * @param input buffer that will be the needed data gathered from\r
22      * @return key for deserializer lookup\r
23      */\r
24     abstract MessageCodeKey make(ByteBuf input);\r
25 \r
26 }\r