/*
 * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.protocol.bgp.rib.impl.spi;

import io.netty.util.concurrent.Future;

import java.net.InetSocketAddress;

import org.opendaylight.protocol.bgp.parser.BGPSession;
import org.opendaylight.protocol.bgp.parser.BGPSessionListener;
import org.opendaylight.protocol.framework.ReconnectStrategy;
import org.opendaylight.protocol.framework.ReconnectStrategyFactory;

/**
 * Dispatcher class for creating BGP clients.
 */
public interface BGPDispatcher {

	/**
	 * Creates BGP client.
	 * 
	 * @param connection attributes required for connection
	 * @param parser BGP message parser
	 * @return client session
	 */
	Future<? extends BGPSession> createClient(InetSocketAddress address, BGPSessionPreferences preferences, BGPSessionListener listener,
			final ReconnectStrategy strategy);

	Future<Void> createReconnectingClient(InetSocketAddress address, BGPSessionPreferences preferences, BGPSessionListener listener,
			ReconnectStrategyFactory connectStrategyFactory, final ReconnectStrategy reestablishStrategy);
}

@@ -816,16 +816,60 @@
  @param 
+address Peer address%0A%09 * @param preferences 
 connecti
@@ -917,20 +917,22 @@
  @param 
-pars
+listen
 er BGP m
@@ -938,20 +938,22 @@
 message 
-pars
+listen
 er%0A%09 * @
@@ -959,16 +959,35 @@
 @return 
+Future promising a 
 client s

Fix javadoc in BGPDispatcher