Package org.forgerock.opendj.ldap
Interface LdapPromise<S>
- Type Parameters:
S- The type of result returned by this promise.
- All Superinterfaces:
Future<S>,org.forgerock.util.promise.Promise<S,LdapException>
- All Known Implementing Classes:
BindResultLdapPromiseImpl,ExtendedResultLdapPromiseImpl,LdapPromiseImpl,ResultLdapPromiseImpl,SearchResultLdapPromiseImpl
A handle which can be used to retrieve the Result of an asynchronous Request.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the request ID of the request if appropriate.<VOUT> LdapPromise<VOUT> then(org.forgerock.util.Function<? super S, VOUT, LdapException> onResult) thenAlways(Runnable onResultOrException) <VOUT> LdapPromise<VOUT> thenAsync(org.forgerock.util.AsyncFunction<? super S, VOUT, LdapException> onResult) thenFinally(Runnable onResultOrException) thenOnException(org.forgerock.util.promise.ExceptionHandler<? super LdapException> onException) thenOnResult(org.forgerock.util.promise.ResultHandler<? super S> onResult) thenOnResultOrException(Runnable onResultOrException) thenOnResultOrException(org.forgerock.util.promise.ResultHandler<? super S> onResult, org.forgerock.util.promise.ExceptionHandler<? super LdapException> onException) Methods inherited from interface org.forgerock.util.promise.Promise
cancel, get, get, getOrThrow, getOrThrow, getOrThrowUninterruptibly, getOrThrowUninterruptibly, isCancelled, isDone, then, then, thenAsync, thenAsync, thenCatch, thenCatchAsync, thenCatchRuntimeException, thenCatchRuntimeExceptionAsync, thenOnRuntimeException
-
Method Details
-
getRequestID
int getRequestID()Returns the request ID of the request if appropriate.- Returns:
- The request ID, or
-1if there is no request ID.
-
thenOnResult
- Specified by:
thenOnResultin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-
thenOnException
LdapPromise<S> thenOnException(org.forgerock.util.promise.ExceptionHandler<? super LdapException> onException) - Specified by:
thenOnExceptionin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-
thenOnResultOrException
- Specified by:
thenOnResultOrExceptionin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-
then
- Specified by:
thenin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-
thenOnResultOrException
LdapPromise<S> thenOnResultOrException(org.forgerock.util.promise.ResultHandler<? super S> onResult, org.forgerock.util.promise.ExceptionHandler<? super LdapException> onException) - Specified by:
thenOnResultOrExceptionin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-
thenAlways
- Specified by:
thenAlwaysin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-
thenFinally
- Specified by:
thenFinallyin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-
thenAsync
<VOUT> LdapPromise<VOUT> thenAsync(org.forgerock.util.AsyncFunction<? super S, VOUT, LdapException> onResult) - Specified by:
thenAsyncin interfaceorg.forgerock.util.promise.Promise<S,LdapException>
-