Uses of Interface
org.forgerock.util.AsyncFunction
Packages that use 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.
Filters the requests and/or responses of HTTP.
This package contains the components used to implement a throttling rate support.
HTTP-based authentication service.
Miscellaneous utility classes.
Provides common interfaces and classes.
An implementation of the
Promise API in Java.-
Uses of AsyncFunction in org.forgerock.http.protocol
Methods in org.forgerock.http.protocol that return AsyncFunctionModifier and TypeMethodDescriptionstatic <E extends Exception>
AsyncFunction<E,Response, NeverThrowsException> Responses.internalServerError()Utility method returning an async function that creates aResponsewith statusStatus.INTERNAL_SERVER_ERRORand 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 aPromisetype. -
Uses of AsyncFunction in org.forgerock.json
Methods in org.forgerock.json with parameters of type AsyncFunctionModifier 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.openig.filter
Constructors in org.forgerock.openig.filter with parameters of type AsyncFunctionModifierConstructorDescriptionConditionalFilter(Filter delegate, AsyncFunction<ContextAndRequest, Boolean, Exception> condition) Constructs aConditionalFilter. -
Uses of AsyncFunction in org.forgerock.openig.filter.throttling
Constructors in org.forgerock.openig.filter.throttling with parameters of type AsyncFunctionModifierConstructorDescriptionMappedThrottlingPolicy(AsyncFunction<ContextAndRequest, String, Exception> throttlingRateMapper, Map<String, ThrottlingRate> throttlingRatesMapping, ThrottlingRate defaultRate) Constructs a newMappedThrottlingPolicy.ThrottlingFilter(AsyncFunction<ContextAndRequest, String, Exception> requestGroupingPolicy, ThrottlingPolicy throttlingRatePolicy, ThrottlingStrategy throttlingStrategy) Constructs a ThrottlingFilter. -
Uses of AsyncFunction in org.forgerock.openig.tools.authentication.chf
Constructors in org.forgerock.openig.tools.authentication.chf with parameters of type AsyncFunctionModifierConstructorDescriptionAsyncRefreshableSupplier(AsyncFunction<Context, V, E> compute) Creates a provider ensuring "only-once" invocation of the given compute function. -
Uses of AsyncFunction in org.forgerock.openig.util
Methods in org.forgerock.openig.util that return AsyncFunctionModifier and TypeMethodDescriptionstatic <V,E extends Exception>
AsyncFunction<V,V, E> AsyncFunctions.asyncResultHandler(AsyncFunction<V, Void, E> asyncResultHandler) Utility async function that will allow to use the calling promise's result asynchronously.JsonValues.evaluatedAsync(org.forgerock.openig.el.Bindings bindings) Returns an async function that will evaluate all String nodes.Methods in org.forgerock.openig.util with parameters of type AsyncFunctionModifier and TypeMethodDescriptionChoice.applyAsync(AsyncFunction<V1, R, E> v1AsyncFunction, AsyncFunction<V2, R, E> v2AsyncFunction) Apply an asynchronous function to the chosen value.static <V,E extends Exception>
AsyncFunction<V,V, E> AsyncFunctions.asyncResultHandler(AsyncFunction<V, Void, E> asyncResultHandler) Utility async function that will allow to use the calling promise's result asynchronously. -
Uses of AsyncFunction in org.forgerock.util
Classes in org.forgerock.util that implement AsyncFunctionModifier and TypeClassDescriptionfinal classCloseSilentlyAsyncFunction<VIN extends Closeable,VOUT, E extends Exception> AsyncFunctionthat silently closes an input-parameter after a delegate-function'sapply(Object)is completed.Methods in org.forgerock.util that return AsyncFunctionModifier 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.Methods in org.forgerock.util with parameters of type AsyncFunctionModifier 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.Constructors in org.forgerock.util with parameters of type AsyncFunctionModifierConstructorDescriptionPerItemEvictionStrategyCache(ScheduledExecutorService executorService, AsyncFunction<V, Duration, Exception> defaultTimeoutFunction) Build a newPerItemEvictionStrategyCacheusing the given scheduled executor. -
Uses of AsyncFunction in org.forgerock.util.promise
Methods in org.forgerock.util.promise that return AsyncFunctionModifier 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 aPromisetype.Methods in org.forgerock.util.promise with parameters of type AsyncFunctionModifier and TypeMethodDescriptionPromise.thenAsync(AsyncFunction<? super V, VOUT, E> onResult) Submits the provided asynchronous function for execution once thisPromisehas completed with a result, and returns a newPromiserepresenting 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 thisPromisehas completed, and returns a newPromiserepresenting 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 thisPromisehas completed, and returns a newPromiserepresenting 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 thisPromisehas completed with an exception, and returns a newPromiserepresenting 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 thisPromisehas completed with aRuntimeException, and returns a newPromiserepresenting the outcome of the function.PromiseImpl.thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException, V, E> onRuntimeException)