Uses of Interface
io.activej.async.function.AsyncSupplier
-
Packages that use AsyncSupplier Package Description io.activej.async.function io.activej.async.process io.activej.async.service io.activej.promise io.activej.promise.jmx -
-
Uses of AsyncSupplier in io.activej.async.function
Methods in io.activej.async.function that return AsyncSupplier Modifier and Type Method Description default @NotNull AsyncSupplier<T>AsyncSupplier. async()Ensures that suppliedPromisewill complete asynchronously.static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. buffer(int maxParallelCalls, int maxBufferedCalls, @NotNull AsyncSupplier<T> actual)static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. buffer(@NotNull AsyncSupplier<T> actual)static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. coalesce(@NotNull AsyncSupplier<T> actual)default <V> @NotNull AsyncSupplier<V>AsyncSupplier. map(@NotNull Function<? super T,? extends V> fn)Applies function before supplying aPromise.default <V> @NotNull AsyncSupplier<V>AsyncSupplier. mapAsync(@NotNull Function<? super T,? extends Promise<V>> fn)Applies function to the result of suppliedPromise.static <T> AsyncSupplier<T>AsyncSupplier. of(@NotNull Supplier<Promise<T>> supplier)static <T> AsyncSupplier<T>AsyncSupplier. ofAsyncSupplierIterable(@NotNull Iterable<? extends AsyncSupplier<T>> iterable)static <T> AsyncSupplier<T>AsyncSupplier. ofAsyncSupplierIterator(@NotNull Iterator<? extends AsyncSupplier<T>> iterator)static <T> AsyncSupplier<T>AsyncSupplier. ofAsyncSupplierStream(@NotNull Stream<? extends AsyncSupplier<T>> stream)static <T> AsyncSupplier<T>AsyncSupplier. ofIterable(@NotNull Iterable<? extends T> iterable)static <T> AsyncSupplier<T>AsyncSupplier. ofIterator(@NotNull Iterator<? extends T> iterator)static <T> AsyncSupplier<T>AsyncSupplier. ofPromise(@NotNull Promise<T> promise)static <T> AsyncSupplier<T>AsyncSupplier. ofPromiseIterable(@NotNull Iterable<? extends Promise<T>> iterable)static <T> AsyncSupplier<T>AsyncSupplier. ofPromiseIterator(@NotNull Iterator<? extends Promise<T>> iterator)static <T> AsyncSupplier<T>AsyncSupplier. ofPromiseStream(@NotNull Stream<? extends Promise<T>> stream)static <T> AsyncSupplier<T>AsyncSupplier. ofStream(@NotNull Stream<? extends T> stream)static <T> AsyncSupplier<T>AsyncSupplier. ofValue(T value)default @NotNull AsyncSupplier<T>AsyncSupplier. peek(@NotNull Consumer<? super T> action)default @NotNull AsyncSupplier<T>AsyncSupplier. peekEx(@NotNull Callback<T> action)static <T> AsyncSupplier<T>AsyncSuppliers. prefetch(int count, @NotNull AsyncSupplier<? extends T> asyncSupplier)static <T> AsyncSupplier<T>AsyncSuppliers. prefetch(int count, @NotNull AsyncSupplier<? extends T> actualSupplier, @NotNull AsyncSupplier<? extends T> prefetchSupplier)static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. reuse(@NotNull AsyncSupplier<? extends T> actual)default @NotNull AsyncSupplier<io.activej.common.collection.Try<T>>AsyncSupplier. toTry()default @NotNull AsyncSupplier<Void>AsyncSupplier. toVoid()default @NotNull AsyncSupplier<T>AsyncSupplier. withExecutor(@NotNull AsyncExecutor asyncExecutor)Methods in io.activej.async.function with parameters of type AsyncSupplier Modifier and Type Method Description static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. buffer(int maxParallelCalls, int maxBufferedCalls, @NotNull AsyncSupplier<T> actual)static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. buffer(@NotNull AsyncSupplier<T> actual)static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. coalesce(@NotNull AsyncSupplier<T> actual)static <T> AsyncSupplier<T>AsyncSuppliers. prefetch(int count, @NotNull AsyncSupplier<? extends T> asyncSupplier)static <T> AsyncSupplier<T>AsyncSuppliers. prefetch(int count, @NotNull AsyncSupplier<? extends T> actualSupplier, @NotNull AsyncSupplier<? extends T> prefetchSupplier)static <T> @NotNull AsyncSupplier<T>AsyncSuppliers. reuse(@NotNull AsyncSupplier<? extends T> actual)Method parameters in io.activej.async.function with type arguments of type AsyncSupplier Modifier and Type Method Description static <T> AsyncSupplier<T>AsyncSupplier. ofAsyncSupplierIterable(@NotNull Iterable<? extends AsyncSupplier<T>> iterable)static <T> AsyncSupplier<T>AsyncSupplier. ofAsyncSupplierIterator(@NotNull Iterator<? extends AsyncSupplier<T>> iterator)static <T> AsyncSupplier<T>AsyncSupplier. ofAsyncSupplierStream(@NotNull Stream<? extends AsyncSupplier<T>> stream)default <R> RAsyncSupplier. transformWith(@NotNull Function<AsyncSupplier<T>,R> fn) -
Uses of AsyncSupplier in io.activej.async.process
Methods in io.activej.async.process with parameters of type AsyncSupplier Modifier and Type Method Description <T> @NotNull Promise<T>AsyncExecutor. execute(@NotNull AsyncSupplier<T> supplier) -
Uses of AsyncSupplier in io.activej.async.service
Methods in io.activej.async.service with parameters of type AsyncSupplier Modifier and Type Method Description static <T> EventloopTaskSchedulerEventloopTaskScheduler. create(Eventloop eventloop, AsyncSupplier<T> task) -
Uses of AsyncSupplier in io.activej.promise
Methods in io.activej.promise with parameters of type AsyncSupplier Modifier and Type Method Description static <T> Iterator<Promise<T>>Promises. asPromises(@NotNull AsyncSupplier<? extends T>... tasks)static <T> @NotNull Promise<T>Promises. first(@NotNull BiPredicate<? super T,? super Throwable> predicate, @NotNull AsyncSupplier<? extends T>... promises)static <T> @NotNull Promise<T>Promises. first(AsyncSupplier<? extends T>... promises)Picks the firstPromisethat was completed without exception.static <T> Promise<T>Promises. retry(AsyncSupplier<T> asyncSupplier)static <T> Promise<T>Promises. retry(AsyncSupplier<T> asyncSupplier, @NotNull RetryPolicy<?> retryPolicy)static <T> Promise<T>Promises. retry(AsyncSupplier<T> asyncSupplier, BiPredicate<T,Throwable> breakCondition, @NotNull RetryPolicy<?> retryPolicy)static <T> Promise<T>Promises. retry(BiPredicate<T,Throwable> breakCondition, AsyncSupplier<T> asyncSupplier)static @NotNull Promise<Void>Promises. sequence(@NotNull AsyncSupplier<Void> promise)GetsPromisefrom providedAsyncSupplier, waits until it completes and than returns aPromise<Void>static @NotNull Promise<Void>Promises. sequence(@NotNull AsyncSupplier<Void>... promises)static @NotNull Promise<Void>Promises. sequence(@NotNull AsyncSupplier<Void> promise1, @NotNull AsyncSupplier<Void> promise2)GetsPromises from providedAsyncSuppliers, end executes them consequently, discarding their results.Method parameters in io.activej.promise with type arguments of type AsyncSupplier Modifier and Type Method Description static <T> Iterator<Promise<T>>Promises. asPromises(@NotNull Iterable<? extends AsyncSupplier<? extends T>> tasks)static <T> @NotNull Iterator<Promise<T>>Promises. asPromises(@NotNull Iterator<? extends AsyncSupplier<? extends T>> tasks)static <T> Iterator<Promise<T>>Promises. asPromises(@NotNull Stream<? extends AsyncSupplier<? extends T>> tasks)static <T> @NotNull Promise<T>Promises. first(@NotNull Iterable<? extends AsyncSupplier<? extends T>> promises)static <T> @NotNull Promise<T>Promises. first(@NotNull BiPredicate<? super T,? super Throwable> predicate, @NotNull Iterable<? extends AsyncSupplier<? extends T>> promises)static <T> @NotNull Promise<T>Promises. first(@NotNull BiPredicate<? super T,? super Throwable> predicate, @NotNull Stream<? extends AsyncSupplier<? extends T>> promises)static <T> @NotNull Promise<T>Promises. first(@NotNull Stream<? extends AsyncSupplier<? extends T>> promises)static @NotNull Promise<Void>Promises. sequence(@NotNull Iterable<? extends AsyncSupplier<Void>> promises)static @NotNull Promise<Void>Promises. sequence(@NotNull Stream<? extends AsyncSupplier<Void>> promises) -
Uses of AsyncSupplier in io.activej.promise.jmx
Methods in io.activej.promise.jmx that return AsyncSupplier Modifier and Type Method Description <T> AsyncSupplier<T>PromiseStats. wrapper(AsyncSupplier<T> callable)Methods in io.activej.promise.jmx with parameters of type AsyncSupplier Modifier and Type Method Description <T> AsyncSupplier<T>PromiseStats. wrapper(AsyncSupplier<T> callable)
-