Package org.apache.tomcat.util.threads
Class ScheduledThreadPoolExecutor
java.lang.Object
org.apache.tomcat.util.threads.ScheduledThreadPoolExecutor
- All Implemented Interfaces:
- Executor,- ExecutorService,- ScheduledExecutorService
Class which wraps a ScheduledExecutorService, while preventing
 lifecycle and configuration operations.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionBuilds a wrapper for the given executor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) voidinvokeAll(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) voidshutdown()Future<?><T> Future<T><T> Future<T>
- 
Field Details- 
executor
 
- 
- 
Constructor Details- 
ScheduledThreadPoolExecutorBuilds a wrapper for the given executor.- Parameters:
- executor- the wrapped executor
 
 
- 
- 
Method Details- 
shutdownpublic void shutdown()- Specified by:
- shutdownin interface- ExecutorService
 
- 
shutdownNow- Specified by:
- shutdownNowin interface- ExecutorService
 
- 
isShutdownpublic boolean isShutdown()- Specified by:
- isShutdownin interface- ExecutorService
 
- 
isTerminatedpublic boolean isTerminated()- Specified by:
- isTerminatedin interface- ExecutorService
 
- 
awaitTermination- Specified by:
- awaitTerminationin interface- ExecutorService
- Throws:
- InterruptedException
 
- 
submit- Specified by:
- submitin interface- ExecutorService
 
- 
submit- Specified by:
- submitin interface- ExecutorService
 
- 
submit- Specified by:
- submitin interface- ExecutorService
 
- 
invokeAllpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException - Specified by:
- invokeAllin interface- ExecutorService
- Throws:
- InterruptedException
 
- 
invokeAllpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException - Specified by:
- invokeAllin interface- ExecutorService
- Throws:
- InterruptedException
 
- 
invokeAnypublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException - Specified by:
- invokeAnyin interface- ExecutorService
- Throws:
- InterruptedException
- ExecutionException
 
- 
invokeAnypublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
- invokeAnyin interface- ExecutorService
- Throws:
- InterruptedException
- ExecutionException
- TimeoutException
 
- 
execute
- 
schedule- Specified by:
- schedulein interface- ScheduledExecutorService
 
- 
schedule- Specified by:
- schedulein interface- ScheduledExecutorService
 
- 
scheduleAtFixedRatepublic ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
- scheduleAtFixedRatein interface- ScheduledExecutorService
 
- 
scheduleWithFixedDelaypublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
- scheduleWithFixedDelayin interface- ScheduledExecutorService
 
 
-