S
- The type of result handled by this result handler.public interface LdapResultHandler<S> extends ResultHandler<S>, 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 ExceptionHandler<LdapException>
exception
- The error result exception indicating why the asynchronous
operation has failed.void handleResult(S result)
handleResult
in interface ResultHandler<S>
result
- The result of the asynchronous operation.Copyright 2010-2022 ForgeRock AS.