Class ManagedScheduledExecutorServiceAdapter
java.lang.Object
org.jboss.as.ee.concurrent.adapter.AbstractManagedExecutorServiceAdapter
org.jboss.as.ee.concurrent.adapter.ManagedScheduledExecutorServiceAdapter
- All Implemented Interfaces:
jakarta.enterprise.concurrent.ManagedExecutorService,jakarta.enterprise.concurrent.ManagedScheduledExecutorService,Executor,ExecutorService,ScheduledExecutorService,WildFlyManagedExecutorService,WildFlyManagedScheduledExecutorService
public class ManagedScheduledExecutorServiceAdapter
extends AbstractManagedExecutorServiceAdapter
implements WildFlyManagedScheduledExecutorService
Abstract base class for
ManagedExecutorService and ManagedScheduledExecutorService implementation with life cycle operations disabled for handing out to application components.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.ee.concurrent.WildFlyManagedExecutorService
WildFlyManagedExecutorService.RejectPolicy -
Constructor Summary
ConstructorsConstructorDescription -
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><V> ScheduledFuture<V><V> ScheduledFuture<V>scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) 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, shutdownNowMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNow
-
Constructor Details
-
ManagedScheduledExecutorServiceAdapter
public ManagedScheduledExecutorServiceAdapter(WildFlyManagedScheduledExecutorService executorService)
-
-
Method Details
-
getExecutorService
-
getWildFlyManagedThreadFactory
- Specified by:
getWildFlyManagedThreadFactoryin interfaceWildFlyManagedExecutorService
-
terminateHungTasks
public void terminateHungTasks()- Specified by:
terminateHungTasksin interfaceWildFlyManagedExecutorService
-
getRuntimeStats
- Specified by:
getRuntimeStatsin interfaceWildFlyManagedExecutorService
-
completedFuture
- Specified by:
completedFuturein interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
completedStage
- Specified by:
completedStagein interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
copy
- Specified by:
copyin interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
copy
- Specified by:
copyin interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
failedFuture
- Specified by:
failedFuturein interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
failedStage
- Specified by:
failedStagein interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
getContextService
public jakarta.enterprise.concurrent.ContextService getContextService()- Specified by:
getContextServicein interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
newIncompleteFuture
- Specified by:
newIncompleteFuturein interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
runAsync
- Specified by:
runAsyncin interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
supplyAsync
- Specified by:
supplyAsyncin interfacejakarta.enterprise.concurrent.ManagedExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException - Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException - Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException - Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
execute
-
schedule
public ScheduledFuture<?> schedule(Runnable runnable, jakarta.enterprise.concurrent.Trigger trigger) - Specified by:
schedulein interfacejakarta.enterprise.concurrent.ManagedScheduledExecutorService
-
schedule
public <V> ScheduledFuture<V> schedule(Callable<V> callable, jakarta.enterprise.concurrent.Trigger trigger) - Specified by:
schedulein interfacejakarta.enterprise.concurrent.ManagedScheduledExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService
-