PCEPSessionNegotiatorFactory is not generic
[bgpcep.git] / pcep / pcc-mock / src / main / java / org / opendaylight / protocol / pcep / pcc / mock / api / PCCDispatcher.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.pcc.mock.api;
9
10 import io.netty.util.concurrent.Future;
11 import java.net.InetSocketAddress;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.protocol.concepts.KeyMapping;
14 import org.opendaylight.protocol.pcep.PCEPSession;
15 import org.opendaylight.protocol.pcep.PCEPSessionListenerFactory;
16 import org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory;
17 import org.opendaylight.yangtools.yang.common.Uint64;
18
19 public interface PCCDispatcher {
20
21     @NonNull Future<PCEPSession> createClient(@NonNull InetSocketAddress remoteAddress,
22             long reconnectTime, @NonNull PCEPSessionListenerFactory listenerFactory,
23             @NonNull PCEPSessionNegotiatorFactory negotiatorFactory, @NonNull KeyMapping keys,
24             @NonNull InetSocketAddress localAddress, @NonNull Uint64 dbVersion);
25
26     @NonNull Future<PCEPSession> createClient(@NonNull InetSocketAddress remoteAddress,
27             long reconnectTime, @NonNull PCEPSessionListenerFactory listenerFactory,
28             @NonNull PCEPSessionNegotiatorFactory negotiatorFactory, @NonNull KeyMapping keys,
29             @NonNull InetSocketAddress localAddress);
30 }