Add new revision for pcep types model
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPDispatcher.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 package org.opendaylight.protocol.pcep;
9
10 import io.netty.channel.ChannelFuture;
11 import javax.annotation.Nonnull;
12
13 /**
14  * Dispatcher class for creating servers and clients.
15  */
16 public interface PCEPDispatcher {
17     /**
18      * Creates server. Each server needs three factories to pass their instances to client sessions.
19      *
20      * @param dispatcherDependencies contains required dependencies for instantiate a PCEP Server
21      * @return instance of PCEPServer
22      */
23     @Nonnull
24     ChannelFuture createServer(@Nonnull PCEPDispatcherDependencies dispatcherDependencies);
25
26     @Nonnull
27     PCEPSessionNegotiatorFactory<?> getPCEPSessionNegotiatorFactory();
28 }