Package org.jboss.as.threads
Class ManagedScheduledExecutorService
java.lang.Object
org.jboss.as.threads.ManagedScheduledExecutorService
- All Implemented Interfaces:
Executor,ExecutorService,ScheduledExecutorService,ManagedExecutorService
ScheduledExecutorService that provides hooks for integration
with a WildFly management resource.- Author:
- Alexey Loubyansky
-
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) voidintlongintintintlonginvokeAll(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) booleanboolean<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>Methods 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, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, submit, submit, submitMethods inherited from interface org.jboss.as.threads.ManagedExecutorService
shutdown, shutdownNow
-
Method Details
-
execute
-
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
-
getActiveCount
public int getActiveCount() -
getCompletedTaskCount
public long getCompletedTaskCount() -
getLargestPoolSize
public int getLargestPoolSize() -
getPoolSize
public int getPoolSize() -
getTaskCount
public long getTaskCount() -
getQueueSize
public int getQueueSize() -
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService- See Also:
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService- See Also:
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException- See Also:
-
submit
- Specified by:
submitin interfaceExecutorService- See Also:
-
submit
- Specified by:
submitin interfaceExecutorService- See Also:
-
submit
- Specified by:
submitin interfaceExecutorService- See Also:
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException - Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException- See Also:
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException - Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException- See Also:
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException - Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException- See Also:
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException- See Also:
-