public class ManagedExecutorImpl extends ThreadPoolExecutor implements org.eclipse.microprofile.context.ManagedExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
ManagedExecutorImpl(int maxAsync,
int maxQueued,
ThreadContextImpl threadContext) |
ManagedExecutorImpl(int maxAsync,
int maxQueued,
ThreadContextImpl threadContext,
String injectionPointName) |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminatednewTaskFor, newTaskForpublic ManagedExecutorImpl(int maxAsync,
int maxQueued,
ThreadContextImpl threadContext)
public ManagedExecutorImpl(int maxAsync,
int maxQueued,
ThreadContextImpl threadContext,
String injectionPointName)
public void shutdown()
shutdown in interface ExecutorServiceshutdown in class ThreadPoolExecutorpublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServiceshutdownNow in class ThreadPoolExecutorpublic boolean isShutdown()
isShutdown in interface ExecutorServiceisShutdown in class ThreadPoolExecutorpublic boolean isTerminated()
isTerminated in interface ExecutorServiceisTerminated in class ThreadPoolExecutorpublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceawaitTermination in class ThreadPoolExecutorInterruptedExceptionpublic <T> Future<T> submit(Callable<T> task)
submit in interface ExecutorServicesubmit in class AbstractExecutorServicepublic <T> Future<T> submit(Runnable task, T result)
submit in interface ExecutorServicesubmit in class AbstractExecutorServicepublic Future<?> submit(Runnable task)
submit in interface ExecutorServicesubmit in class AbstractExecutorServicepublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll in interface ExecutorServiceinvokeAll in class AbstractExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceinvokeAll in class AbstractExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny in interface ExecutorServiceinvokeAny in class AbstractExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny in interface ExecutorServiceinvokeAny in class AbstractExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionpublic void execute(Runnable command)
execute in interface Executorexecute in class ThreadPoolExecutorpublic <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(java.util.function.Supplier<U> supplier)
supplyAsync in interface org.eclipse.microprofile.context.ManagedExecutorpublic <U> CompletableFuture<U> newIncompleteFuture()
newIncompleteFuture in interface org.eclipse.microprofile.context.ManagedExecutorpublic String toString()
toString in class ThreadPoolExecutorpublic ThreadContextProviderPlan getThreadContextProviderPlan()
public int getMaxAsync()
public int getMaxQueued()
public String getInjectionPointName()
Copyright © 2019. All rights reserved.