Class ManagedExecutorServiceAdapter
java.lang.Object
org.jboss.as.ee.concurrent.adapter.AbstractManagedExecutorServiceAdapter
org.jboss.as.ee.concurrent.adapter.ManagedExecutorServiceAdapter
- All Implemented Interfaces:
jakarta.enterprise.concurrent.ManagedExecutorService,Executor,ExecutorService
Abstract base class for
ManagedExecutorService and ManagedScheduledExecutorService implementation with life cycle operations disabled for handing out to application components.-
Constructor Summary
ConstructorsConstructorDescriptionManagedExecutorServiceAdapter(WildFlyManagedExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescription<U> CompletableFuture<U>completedFuture(U u) <U> CompletionStage<U>completedStage(U u) <T> CompletableFuture<T>copy(CompletableFuture<T> completableFuture) <T> CompletionStage<T>copy(CompletionStage<T> completionStage) void<U> CompletableFuture<U>failedFuture(Throwable throwable) <U> CompletionStage<U>failedStage(Throwable throwable) jakarta.enterprise.concurrent.ContextServiceinvokeAll(Collection<? extends Callable<T>> tasks) invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <T> TinvokeAny(Collection<? extends Callable<T>> tasks) <T> TinvokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <U> CompletableFuture<U>Future<?><T> Future<T><T> Future<T><U> CompletableFuture<U>supplyAsync(Supplier<U> supplier) voidMethods inherited from class org.jboss.as.ee.concurrent.adapter.AbstractManagedExecutorServiceAdapter
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNow
-
Constructor Details
-
ManagedExecutorServiceAdapter
-
-
Method Details
-
getExecutorService
-
getManagedThreadFactory
-
terminateHungTasks
public void terminateHungTasks() -
getRuntimeStats
-
completedFuture
-
completedStage
-
copy
-
copy
-
failedFuture
-
failedStage
-
getContextService
public jakarta.enterprise.concurrent.ContextService getContextService() -
newIncompleteFuture
-
runAsync
-
supplyAsync
-
submit
-
submit
-
submit
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException - Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException - Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException -
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException -
execute
-