b1d2a12468fdc9f6423de6b6bffc778510a0ef18
[netconf.git] / protocol / netconf-client / src / main / java / org / opendaylight / netconf / client / NetconfClientDispatcher.java
1 /*
2  * Copyright (c) 2014 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.netconf.client;
9
10 import io.netty.util.concurrent.Future;
11 import org.opendaylight.netconf.client.conf.NetconfClientConfiguration;
12 import org.opendaylight.netconf.client.conf.NetconfReconnectingClientConfiguration;
13 import org.opendaylight.netconf.nettyutil.ReconnectFuture;
14
15 public interface NetconfClientDispatcher {
16
17     /**
18      * Create netconf client. Network communication has to be set up based on network protocol specified in
19      * clientConfiguration
20      *
21      * @param clientConfiguration Configuration of client
22      * @return netconf client based on provided configuration
23      */
24     Future<NetconfClientSession> createClient(NetconfClientConfiguration clientConfiguration);
25
26     ReconnectFuture createReconnectingClient(NetconfReconnectingClientConfiguration clientConfiguration);
27 }