Package io.activej.async.function
Class AsyncSuppliers
java.lang.Object
io.activej.async.function.AsyncSuppliers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AsyncSupplier<T>buffer(int maxParallelCalls, int maxBufferedCalls, AsyncSupplier<T> actualSupplier) static <T> AsyncSupplier<T>buffer(AsyncSupplier<T> actual) static <T> AsyncSupplier<T>coalesce(AsyncSupplier<T> actual) static <T> AsyncSupplier<T>ofExecutor(AsyncExecutor executor, AsyncSupplier<T> supplier) static <T> AsyncSupplier<T>prefetch(int count, AsyncSupplier<? extends T> supplier) static <T> AsyncSupplier<T>prefetch(int count, AsyncSupplier<? extends T> actualSupplier, AsyncSupplier<? extends T> prefetchSupplier) static <T> AsyncSupplier<T>reuse(AsyncSupplier<? extends T> actual)
-
Constructor Details
-
AsyncSuppliers
public AsyncSuppliers()
-
-
Method Details
-
reuse
-
coalesce
-
buffer
-
buffer
@Contract(pure=true) public static <T> AsyncSupplier<T> buffer(int maxParallelCalls, int maxBufferedCalls, AsyncSupplier<T> actualSupplier) -
ofExecutor
@Contract(pure=true) public static <T> AsyncSupplier<T> ofExecutor(AsyncExecutor executor, AsyncSupplier<T> supplier) -
prefetch
@Contract(pure=true) public static <T> AsyncSupplier<T> prefetch(int count, AsyncSupplier<? extends T> supplier) -
prefetch
@Contract(pure=true) public static <T> AsyncSupplier<T> prefetch(int count, AsyncSupplier<? extends T> actualSupplier, AsyncSupplier<? extends T> prefetchSupplier)
-