| | |
| | | |
| | | package org.opends.sdk; |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.responses.Result; |
| | | |
| | | |
| | | |
| | | /** |
| | | * A completion handler for consuming the result of an asynchronous |
| | | * operation. |
| | |
| | | * Implementations of these methods should complete in a timely manner |
| | | * so as to avoid keeping the invoking thread from dispatching to other |
| | | * completion handlers. |
| | | * |
| | | * |
| | | * @param <S> |
| | | * The type of result handled by this result handler. |
| | | * @param <P> |
| | |
| | | * methods. Use {@link java.lang.Void} for visitors that do not |
| | | * need an additional parameter. |
| | | */ |
| | | public interface ResultHandler<S extends Result, P> |
| | | public interface ResultHandler<S, P> |
| | | { |
| | | /** |
| | | * Invoked when the asynchronous operation has failed. |
| | | * |
| | | * |
| | | * @param p |
| | | * A handler specified parameter. |
| | | * @param error |
| | |
| | | |
| | | /** |
| | | * Invoked when the asynchronous operation has completed successfully. |
| | | * |
| | | * |
| | | * @param p |
| | | * A handler specified parameter. |
| | | * @param result |