1dc8933e69fe18dd696605a1d2c9e01629bef252
[bgpcep.git] / bmp / bmp-spi / src / main / java / org / opendaylight / protocol / bmp / api / BmpSessionFactory.java
1 /*
2  * Copyright (c) 2015 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 package org.opendaylight.protocol.bmp.api;
9
10 import io.netty.channel.Channel;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12
13 @NonNullByDefault
14 public interface BmpSessionFactory {
15     /**
16      * Creates Bmp Session.
17      *
18      * @param channel                generated channel
19      * @param sessionListenerFactory listener factory
20      * @return bmp session
21      */
22     BmpSession getSession(Channel channel, BmpSessionListenerFactory sessionListenerFactory);
23 }