Package io.activej.async.process
Class AsyncExecutors
- java.lang.Object
-
- io.activej.async.process.AsyncExecutors
-
public class AsyncExecutors extends Object
-
-
Constructor Summary
Constructors Constructor Description AsyncExecutors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsyncExecutorbuffered(int maxParallelCalls)static AsyncExecutorbuffered(int maxParallelCalls, int maxBufferedCalls)static AsyncExecutordirect()static AsyncExecutorofEventloop(@NotNull Eventloop eventloop)static AsyncExecutorofMaxRecursiveCalls(int maxRecursiveCalls)static AsyncExecutorretry(@NotNull RetryPolicy<?> retryPolicy)static AsyncExecutorroundRobin(@NotNull List<AsyncExecutor> executors)static AsyncExecutorsequential()
-
-
-
Method Detail
-
direct
public static AsyncExecutor direct()
-
ofEventloop
public static AsyncExecutor ofEventloop(@NotNull @NotNull Eventloop eventloop)
-
roundRobin
public static AsyncExecutor roundRobin(@NotNull @NotNull List<AsyncExecutor> executors)
-
sequential
public static AsyncExecutor sequential()
-
buffered
public static AsyncExecutor buffered(int maxParallelCalls)
-
buffered
public static AsyncExecutor buffered(int maxParallelCalls, int maxBufferedCalls)
-
retry
public static AsyncExecutor retry(@NotNull @NotNull RetryPolicy<?> retryPolicy)
-
ofMaxRecursiveCalls
public static AsyncExecutor ofMaxRecursiveCalls(int maxRecursiveCalls)
-
-