public class SmallRyeManagedExecutor extends Object implements org.eclipse.microprofile.context.ManagedExecutor
| Modifier and Type | Class and Description |
|---|---|
static class |
SmallRyeManagedExecutor.Builder |
| Constructor and Description |
|---|
SmallRyeManagedExecutor(int maxAsync,
int maxQueued,
SmallRyeThreadContext threadContext,
ExecutorService executor,
String injectionPointName) |
public SmallRyeManagedExecutor(int maxAsync,
int maxQueued,
SmallRyeThreadContext threadContext,
ExecutorService executor,
String injectionPointName)
public static ExecutorService newThreadPoolExecutor(int maxAsync, int maxQueued)
public void shutdown()
shutdown in interface ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServicepublic boolean isTerminated()
isTerminated in interface ExecutorServicepublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedExceptionpublic <T> Future<T> submit(Callable<T> task)
submit in interface ExecutorServicepublic <T> Future<T> submit(Runnable task, T result)
submit in interface ExecutorServicepublic Future<?> submit(Runnable task)
submit in interface ExecutorServicepublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionpublic <U> CompletableFuture<U> completedFuture(U value)
completedFuture in interface org.eclipse.microprofile.context.ManagedExecutorpublic <U> CompletionStage<U> completedStage(U value)
completedStage in interface org.eclipse.microprofile.context.ManagedExecutorpublic <U> CompletableFuture<U> failedFuture(Throwable ex)
failedFuture in interface org.eclipse.microprofile.context.ManagedExecutorpublic <U> CompletionStage<U> failedStage(Throwable ex)
failedStage in interface org.eclipse.microprofile.context.ManagedExecutorpublic CompletableFuture<Void> runAsync(Runnable runnable)
runAsync in interface org.eclipse.microprofile.context.ManagedExecutorpublic <U> CompletableFuture<U> supplyAsync(Supplier<U> supplier)
supplyAsync in interface org.eclipse.microprofile.context.ManagedExecutorpublic <U> CompletableFuture<U> newIncompleteFuture()
newIncompleteFuture in interface org.eclipse.microprofile.context.ManagedExecutorpublic ThreadContextProviderPlan getThreadContextProviderPlan()
public int getMaxAsync()
public int getMaxQueued()
public String getInjectionPointName()
Copyright © 2018–2020. All rights reserved.