Uses of Interface
org.forgerock.util.AsyncFunction
-
Packages that use AsyncFunction Package Description org.forgerock.json Provides an API for the traversal and manipulation of JSON object model structures in Java.org.forgerock.opendj.ldap Classes and interfaces for core types including connections, entries, and attributes.org.forgerock.util Provides common interfaces and classes.org.forgerock.util.promise An implementation of thePromise
API in Java. -
-
Uses of AsyncFunction in org.forgerock.json
Methods in org.forgerock.json with parameters of type AsyncFunction Modifier and Type Method Description <V,E extends Exception>
Promise<V,E>JsonValue. asAsync(AsyncFunction<JsonValue,V,E> transformFunction)
Returns the JSON value as a promised object whose type (and value) is specified by a transformation function. -
Uses of AsyncFunction in org.forgerock.opendj.ldap
Methods in org.forgerock.opendj.ldap with parameters of type AsyncFunction Modifier and Type Method Description <VOUT> LdapPromise<VOUT>
LdapPromise. thenAsync(AsyncFunction<? super S,VOUT,LdapException> onResult)
-
Uses of AsyncFunction in org.forgerock.util
Classes in org.forgerock.util that implement AsyncFunction Modifier and Type Class Description class
CloseSilentlyAsyncFunction<VIN extends Closeable,VOUT,E extends Exception>
AsyncFunction
that silently closes an input-parameter after a delegate-function'sapply(Object)
is completed.Methods in org.forgerock.util that return AsyncFunction Modifier and Type Method Description static <IN extends Closeable,OUT,EX extends Exception>
AsyncFunction<IN,OUT,EX>CloseSilentlyAsyncFunction. closeSilently(AsyncFunction<IN,OUT,EX> delegate)
Wraps a delegate asynchronous function in aCloseSilentlyAsyncFunction
.Methods in org.forgerock.util with parameters of type AsyncFunction Modifier and Type Method Description static <IN extends Closeable,OUT,EX extends Exception>
AsyncFunction<IN,OUT,EX>CloseSilentlyAsyncFunction. closeSilently(AsyncFunction<IN,OUT,EX> delegate)
Wraps a delegate asynchronous function in aCloseSilentlyAsyncFunction
.<E extends Exception>
VPerItemEvictionStrategyCache. getValue(K key, Callable<V> callable, AsyncFunction<V,Duration,E> expire)
Borrow (and create before hand if absent) a cache entry.Constructors in org.forgerock.util with parameters of type AsyncFunction Constructor Description PerItemEvictionStrategyCache(ScheduledExecutorService executorService, AsyncFunction<V,Duration,Exception> defaultTimeoutFunction)
Build a newPerItemEvictionStrategyCache
using the given scheduled executor. -
Uses of AsyncFunction in org.forgerock.util.promise
Methods in org.forgerock.util.promise that return AsyncFunction Modifier and Type Method Description static <V,E extends Exception>
AsyncFunction<NeverThrowsException,V,E>NeverThrowsException. neverThrownAsync()
Utility method returning an empty function, whose goal is to ease the transformation of aPromise
type.Methods in org.forgerock.util.promise with parameters of type AsyncFunction Modifier and Type Method Description <VOUT> Promise<VOUT,E>
Promise. thenAsync(AsyncFunction<? super V,VOUT,E> onResult)
Submits the provided asynchronous function for execution once thisPromise
has completed with a result, and returns a newPromise
representing the outcome of the function.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>Promise. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException)
Submits the provided asynchronous functions for execution once thisPromise
has completed, and returns a newPromise
representing the outcome of the invoked function.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>Promise. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException, AsyncFunction<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Submits the provided asynchronous functions for execution once thisPromise
has completed, and returns a newPromise
representing the outcome of the invoked function.<VOUT> Promise<VOUT,E>
PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,E> onResult)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException, AsyncFunction<? super RuntimeException,VOUT,EOUT> onRuntimeException)
<EOUT extends Exception>
Promise<V,EOUT>Promise. thenCatchAsync(AsyncFunction<? super E,V,EOUT> onException)
Submits the provided asynchronous function for execution once thisPromise
has completed with an exception, and returns a newPromise
representing the outcome of the function.<EOUT extends Exception>
Promise<V,EOUT>PromiseImpl. thenCatchAsync(AsyncFunction<? super E,V,EOUT> onException)
Promise<V,E>
Promise. thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException,V,E> onRuntimeException)
Submits the provided asynchronous function for execution once thisPromise
has completed with aRuntimeException
, and returns a newPromise
representing the outcome of the function.Promise<V,E>
PromiseImpl. thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException,V,E> onRuntimeException)
-