Draft implementation of integration tests
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / connection / MessageConsumer.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
9 package org.opendaylight.openflowjava.protocol.impl.connection;
10
11 import io.netty.channel.Channel;
12
13 import org.opendaylight.yangtools.yang.binding.DataObject;
14
15 /**
16  * @author mirehak
17  *
18  */
19 public interface MessageConsumer {
20
21     /**
22      * @param message to process
23      */
24     public void consume(DataObject message);
25     
26     /**
27      * @param channel sets processing channel
28      */
29     public void setChannel(Channel channel);
30 }