Uses of Interface
org.forgerock.util.AsyncFunction
-
Packages that use AsyncFunction Package Description org.forgerock.http.protocol Models and manages elements of the Hypertext Transfer Protocol.org.forgerock.openig.el Integrates with the Java Enterprise Edition Unified Expression Language API.org.forgerock.openig.filter Filters the requests and/or responses of HTTP.org.forgerock.openig.filter.throttling This package contains the components used to implement a throttling rate support.org.forgerock.openig.tools.authentication.chf HTTP-based authentication service.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.http.protocol
Methods in org.forgerock.http.protocol that return AsyncFunction Modifier and Type Method Description static <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. -
Uses of AsyncFunction in org.forgerock.openig.el
Classes in org.forgerock.openig.el that implement AsyncFunction Modifier and Type Class Description class
ExpressionRequestAsyncFunction<V>
This is an implementation of theAsyncFunction
based on the evaluation of anExpression
. -
Uses of AsyncFunction in org.forgerock.openig.filter
Constructors in org.forgerock.openig.filter with parameters of type AsyncFunction Constructor Description ConditionalFilter(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 AsyncFunction Constructor Description MappedThrottlingPolicy(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 AsyncFunction Constructor Description AsyncRefreshableSupplier(AsyncFunction<Context,V,E> compute)
Creates a provider ensuring "only-once" invocation of the given compute function. -
Uses of AsyncFunction in org.forgerock.util
Methods in org.forgerock.util with parameters of type AsyncFunction Modifier and Type Method Description <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 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)
-