S - The type of result handled by this result handler.public interface LdapResultHandler<S> extends org.forgerock.util.promise.ResultHandler<S>, org.forgerock.util.promise.ExceptionHandler<LdapException>
A result completion handler may be specified when performing asynchronous
operations using a Connection object or when connecting
asynchronously to a remote Directory Server using an
ConnectionFactory. The handleResult(S) method is invoked when
the operation or connection attempt completes successfully. The
handleException(LdapException) method is invoked if the operation or connection
attempt fails.
Implementations of these methods should complete in a timely manner so as to avoid keeping the invoking thread from dispatching to other completion handlers.
| Modifier and Type | Method and Description |
|---|---|
void |
handleException(LdapException exception)
Invoked when the asynchronous operation has failed.
|
void |
handleResult(S result)
Invoked when the asynchronous operation has completed successfully.
|
void handleException(LdapException exception)
handleException in interface org.forgerock.util.promise.ExceptionHandler<LdapException>exception - The error result exception indicating why the asynchronous
operation has failed.void handleResult(S result)
handleResult in interface org.forgerock.util.promise.ResultHandler<S>result - The result of the asynchronous operation.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.