Package org.jboss.as.threads
Class ManagedScheduledExecutorService
- java.lang.Object
-
- org.jboss.as.threads.ManagedExecutorService
-
- org.jboss.as.threads.ManagedScheduledExecutorService
-
- All Implemented Interfaces:
Executor,ExecutorService,ScheduledExecutorService
public class ManagedScheduledExecutorService extends ManagedExecutorService implements ScheduledExecutorService
- Author:
- Alexey Loubyansky
-
-
Constructor Summary
Constructors Constructor Description ManagedScheduledExecutorService(ScheduledThreadPoolExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActiveCount()longgetCompletedTaskCount()intgetLargestPoolSize()intgetPoolSize()intgetQueueSize()longgetTaskCount()protected ExecutorServiceprotectExecutor(ExecutorService executor)ScheduledFuture<?>schedule(Runnable command, long delay, TimeUnit unit)<V> ScheduledFuture<V>schedule(Callable<V> callable, long delay, TimeUnit unit)ScheduledFuture<?>scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)ScheduledFuture<?>scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)-
Methods inherited from class org.jboss.as.threads.ManagedExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
-
-
-
Constructor Detail
-
ManagedScheduledExecutorService
public ManagedScheduledExecutorService(ScheduledThreadPoolExecutor executor)
-
-
Method Detail
-
protectExecutor
protected ExecutorService protectExecutor(ExecutorService executor)
- Overrides:
protectExecutorin classManagedExecutorService
-
schedule
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
- Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
- 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()
-
-