*
* @param dispatcher {@code NetconfCLientDispatcher}
* @param config {@code NetconfClientConfiguration}
- * @return future that returns succes on first succesfull connection and failure when the underlying
- * reconnecting strategy runs out of reconnection attempts
+ * @return a ListenableFuture that returns success on first successful connection and failure when the underlying
+ * reconnecting strategy runs out of reconnection attempts
*/
public ListenableFuture<NetconfDeviceCapabilities> initializeRemoteConnection(
final NetconfClientDispatcher dispatcher, final NetconfClientConfiguration config) {
initFuture = dispatcher.createClient(config);
}
-
initFuture.addListener(future -> {
if (!future.isSuccess() && !future.isCancelled()) {
LOG.debug("{}: Connection failed", id, future.cause());