PCEPSessionNegotiatorFactory is not generic
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPSessionNegotiatorFactory.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.pcep;
9
10 import io.netty.channel.Channel;
11 import io.netty.util.concurrent.Promise;
12 import org.eclipse.jdt.annotation.NonNull;
13
14 /**
15  * Factory for creating PCEP session negotiator.
16  */
17 public interface PCEPSessionNegotiatorFactory {
18
19     /**
20      * Creates PCEPSessionNegotiator instance for income attributes.
21      *
22      * @param sessionNegotiatorDependencies contains PCEPSessionNegotiator dependencies
23      * @param channel                       session channel
24      * @param promise                       session promise
25      * @return PCEPSessionNegotiator instance
26      */
27     @NonNull SessionNegotiator getSessionNegotiator(
28             @NonNull PCEPSessionNegotiatorFactoryDependencies sessionNegotiatorDependencies,
29             @NonNull Channel channel, @NonNull Promise<PCEPSession> promise);
30
31     /**
32      * Returns a PCEPSessionProposalFactory.
33      *
34      * @return session factory
35      */
36     @NonNull PCEPSessionProposalFactory getPCEPSessionProposalFactory();
37 }