Package io.activej.async.function
Class AsyncSuppliers
- java.lang.Object
-
- io.activej.async.function.AsyncSuppliers
-
public final class AsyncSuppliers extends Object
-
-
Constructor Summary
Constructors Constructor Description AsyncSuppliers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> @NotNull AsyncSupplier<T>buffer(int maxParallelCalls, int maxBufferedCalls, @NotNull AsyncSupplier<T> actual)static <T> @NotNull AsyncSupplier<T>buffer(@NotNull AsyncSupplier<T> actual)static <T> @NotNull AsyncSupplier<T>coalesce(@NotNull AsyncSupplier<T> actual)static <T> AsyncSupplier<T>prefetch(int count, @NotNull AsyncSupplier<? extends T> asyncSupplier)static <T> AsyncSupplier<T>prefetch(int count, @NotNull AsyncSupplier<? extends T> actualSupplier, @NotNull AsyncSupplier<? extends T> prefetchSupplier)static <T> @NotNull AsyncSupplier<T>reuse(@NotNull AsyncSupplier<? extends T> actual)
-
-
-
Method Detail
-
reuse
@Contract(pure=true) @NotNull public static <T> @NotNull AsyncSupplier<T> reuse(@NotNull @NotNull AsyncSupplier<? extends T> actual)
-
coalesce
@Contract(pure=true) @NotNull public static <T> @NotNull AsyncSupplier<T> coalesce(@NotNull @NotNull AsyncSupplier<T> actual)
-
buffer
@Contract(pure=true) @NotNull public static <T> @NotNull AsyncSupplier<T> buffer(@NotNull @NotNull AsyncSupplier<T> actual)
-
buffer
@Contract(pure=true) @NotNull public static <T> @NotNull AsyncSupplier<T> buffer(int maxParallelCalls, int maxBufferedCalls, @NotNull @NotNull AsyncSupplier<T> actual)
-
prefetch
@Contract(pure=true) public static <T> AsyncSupplier<T> prefetch(int count, @NotNull @NotNull AsyncSupplier<? extends T> asyncSupplier)
-
prefetch
@Contract(pure=true) public static <T> AsyncSupplier<T> prefetch(int count, @NotNull @NotNull AsyncSupplier<? extends T> actualSupplier, @NotNull @NotNull AsyncSupplier<? extends T> prefetchSupplier)
-
-