Uses of Interface
org.forgerock.util.promise.ResultHandler
Package
Description
Classes and interfaces for core types including connections, entries, and
attributes.
An implementation of the
Promise
API in Java.-
Uses of ResultHandler in org.forgerock.opendj.ldap
Modifier and TypeInterfaceDescriptioninterface
A completion handler for consuming the result of an asynchronous operation or connection attempts.Modifier and TypeMethodDescriptionLdapPromise.thenOnResult
(ResultHandler<? super S> onResult) LdapPromise.thenOnResultOrException
(ResultHandler<? super S> onResult, ExceptionHandler<? super LdapException> onException) -
Uses of ResultHandler in org.forgerock.util.promise
Modifier and TypeClassDescriptionclass
PromiseImpl<V,
E extends Exception> An implementation ofPromise
which can be used as is, or as the basis for more complex asynchronous behavior.Modifier and TypeMethodDescription<T extends ResultHandler<? super V> & ExceptionHandler<? super E> & RuntimeExceptionHandler>
Promise<V,E> Promise.thenOnCompletion
(T handler) Registers the provided completion handler for notification for all completion cases of thisPromise
.final <T extends ResultHandler<? super V> & ExceptionHandler<? super E> & RuntimeExceptionHandler>
Promise<V,E> PromiseImpl.thenOnCompletion
(T handler) Modifier and TypeMethodDescriptionPromise.thenOnResult
(ResultHandler<? super V> onResult) Registers the provided completion handler for notification once thisPromise
has completed with a result.PromiseImpl.thenOnResult
(ResultHandler<? super V> onResult) Promise.thenOnResultOrException
(ResultHandler<? super V> onResult, ExceptionHandler<? super E> onException) Registers the provided completion handlers for notification once thisPromise
has completed (with a result or an exception).PromiseImpl.thenOnResultOrException
(ResultHandler<? super V> onResult, ExceptionHandler<? super E> onException)