Merge "Sending each flow/group in separate bundle add rpc instead of adding all messa...
[openflowplugin.git] / openflowjava / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / connection / ConnectionAdapterFactoryImpl.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. 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
10 package org.opendaylight.openflowjava.protocol.impl.core.connection;
11
12 import io.netty.channel.Channel;
13 import java.net.InetSocketAddress;
14
15 /**
16  * Implementation of ConnectionAdapterFactory.
17  *
18  * @author mirehak
19  * @author michal.polkorab
20  */
21 public class ConnectionAdapterFactoryImpl implements ConnectionAdapterFactory {
22
23     @Override
24     public ConnectionFacade createConnectionFacade(final Channel ch, final InetSocketAddress address,
25                                                    final boolean useBarrier, final int channelOutboundQueueSize) {
26         return new ConnectionAdapterImpl(ch, address, useBarrier, channelOutboundQueueSize);
27     }
28 }