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

matthew_swift
14.21.2009 a415256cc798baf286d618a2c9ddd427c26a518d
sdk/src/org/opends/sdk/ResultHandler.java
@@ -43,33 +43,25 @@
 *
 * @param <S>
 *          The type of result handled by this 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 ResultHandler<S, P>
public interface ResultHandler<S>
{
  /**
   * Invoked when the asynchronous operation has failed.
   *
   * @param p
   *          A handler specified parameter.
   * @param error
   *          The error result exception indicating why the asynchronous
   *          operation has failed.
   */
  void handleErrorResult(P p, ErrorResultException error);
  void handleErrorResult(ErrorResultException error);
  /**
   * Invoked when the asynchronous operation has completed successfully.
   *
   * @param p
   *          A handler specified parameter.
   * @param result
   *          The result of the asynchronous operation.
   */
  void handleResult(P p, S result);
  void handleResult(S result);
}