mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
14.21.2009 a415256cc798baf286d618a2c9ddd427c26a518d
sdk/src/org/opends/sdk/ConnectionResultHandler.java
@@ -27,8 +27,6 @@
package org.opends.sdk;
/**
 * A completion handler which is notified when an asynchronous
 * connection attempt has completed.
@@ -47,35 +45,27 @@
 * @param <C>
 *          The type of asynchronous connection handled by this
 *          connection result handler.
 * @param <P>
 *          The type of the additional parameter to this handler's
 *          methods. Use {@link java.lang.Void} for visitors that do not
 *          need an additional parameter.
 */
public interface ConnectionResultHandler<C extends AsynchronousConnection, P>
public interface ConnectionResultHandler<C extends AsynchronousConnection>
{
  /**
   * Invoked when the asynchronous connection has completed
   * successfully.
   *
   * @param p
   *          A handler specified parameter.
   * @param connection
   *          The connection which can be used to interact with the
   *          Directory Server.
   */
  void handleConnection(P p, C connection);
  void handleConnection(C connection);
  /**
   * Invoked when the asynchronous connection attempt has failed.
   *
   * @param p
   *          A handler specified parameter.
   * @param error
   *          The error result exception indicating why the asynchronous
   *          connection attempt has failed.
   */
  void handleConnectionError(P p, ErrorResultException error);
  void handleConnectionError(ErrorResultException error);
}