Uses of Interface
org.forgerock.util.AsyncFunction
Package
Description
Models and manages elements of the Hypertext Transfer Protocol.
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Forgerock Facebook Client Implementation.
OAuth 2.0 ForgeRock Client Implementation.
Classes and interfaces for core types including connections, entries, and
attributes.
Provides common interfaces and classes.
An implementation of the
Promise
API in Java.-
Uses of AsyncFunction in org.forgerock.http.protocol
Modifier and TypeMethodDescriptionstatic <E extends Exception>
AsyncFunction<E,Response, NeverThrowsException> Responses.internalServerError()
Utility method returning an async function that creates aResponse
with statusStatus.INTERNAL_SERVER_ERROR
and the exception set as the cause.static <V,
E extends Exception>
AsyncFunction<NeverThrowsException,V, E> Responses.noopExceptionAsyncFunction()
Utility method returning an empty async function, whose goal is to ease the transformation of aPromise
type. -
Uses of AsyncFunction in org.forgerock.json
Modifier and TypeMethodDescriptionJsonValue.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.oauth.clients.facebook
Modifier and TypeMethodDescriptionprotected AsyncFunction<JsonValue,
JsonValue, OAuthException> FacebookClient.getInputTokenInfo
(Context context, String inputToken) Retrieves the access token information as aJsonValue
. -
Uses of AsyncFunction in org.forgerock.oauth.clients.oauth2
Modifier and TypeMethodDescriptionprotected static AsyncFunction<Response,
JsonValue, OAuthException> OAuth2Client.mapToJsonValue()
AnAsyncFunction
that handles aResponse
from an Auth Server that returns the HTTP entity content as JsonValue, and throws anOAuthException
if the response is not successful (200 family status code), or if the content is not a valid JSON. -
Uses of AsyncFunction in org.forgerock.opendj.ldap
Modifier and TypeMethodDescription<VOUT> LdapPromise<VOUT>
LdapPromise.thenAsync
(AsyncFunction<? super S, VOUT, LdapException> onResult) -
Uses of AsyncFunction in org.forgerock.util
Modifier and TypeClassDescriptionfinal class
CloseSilentlyAsyncFunction<VIN extends Closeable,
VOUT, E extends Exception> AsyncFunction
that silently closes an input-parameter after a delegate-function'sapply(Object)
is completed.Modifier and TypeMethodDescriptionstatic <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
.Modifier and TypeMethodDescriptionstatic <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
.PerItemEvictionStrategyCache.getValue
(K key, Callable<V> callable, AsyncFunction<V, Duration, E> expire) Borrow (and create before hand if absent) a cache entry.ModifierConstructorDescriptionPerItemEvictionStrategyCache
(ScheduledExecutorService executorService, AsyncFunction<V, Duration, Exception> defaultTimeoutFunction) Build a newPerItemEvictionStrategyCache
using the given scheduled executor. -
Uses of AsyncFunction in org.forgerock.util.promise
Modifier and TypeMethodDescriptionstatic <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.Modifier and TypeMethodDescriptionPromise.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.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.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.PromiseImpl.thenAsync
(AsyncFunction<? super V, VOUT, E> onResult) PromiseImpl.thenAsync
(AsyncFunction<? super V, VOUT, EOUT> onResult, AsyncFunction<? super E, VOUT, EOUT> onException) PromiseImpl.thenAsync
(AsyncFunction<? super V, VOUT, EOUT> onResult, AsyncFunction<? super E, VOUT, EOUT> onException, AsyncFunction<? super RuntimeException, VOUT, EOUT> onRuntimeException) 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.PromiseImpl.thenCatchAsync
(AsyncFunction<? super E, V, EOUT> onException) 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.PromiseImpl.thenCatchRuntimeExceptionAsync
(AsyncFunction<? super RuntimeException, V, E> onRuntimeException)