Rework NETCONF client reconnection
[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
13 public interface NetconfClientDispatcher {
14     /**
15      * Create netconf client. Network communication has to be set up based on network protocol specified in
16      * clientConfiguration
17      *
18      * @param clientConfiguration Configuration of client
19      * @return netconf client based on provided configuration
20      */
21     Future<NetconfClientSession> createClient(NetconfClientConfiguration clientConfiguration);
22 }