public final class BlockingEventloopExecutor extends Object implements EventloopExecutor
| Modifier and Type | Method and Description |
|---|---|
static BlockingEventloopExecutor |
create(Eventloop eventloop,
int limit) |
void |
execute(Runnable runnable) |
int |
getLimit() |
<T> CompletableFuture<T> |
submit(AsyncCallable<T> asyncCallable) |
<T> CompletableFuture<T> |
submit(Callable<T> callable) |
CompletableFuture<Void> |
submit(Runnable runnable) |
public static BlockingEventloopExecutor create(Eventloop eventloop, int limit)
public int getLimit()
public CompletableFuture<Void> submit(Runnable runnable)
submit in interface EventloopExecutorpublic <T> CompletableFuture<T> submit(Callable<T> callable)
submit in interface EventloopExecutorpublic <T> CompletableFuture<T> submit(AsyncCallable<T> asyncCallable)
submit in interface EventloopExecutorCopyright © 2019. All rights reserved.