Package jenkins.util
Class InterceptingScheduledExecutorService
- java.lang.Object
-
- jenkins.util.InterceptingExecutorService
-
- jenkins.util.InterceptingScheduledExecutorService
-
- All Implemented Interfaces:
Executor,ExecutorService,ScheduledExecutorService
- Direct Known Subclasses:
ImpersonatingScheduledExecutorService
public abstract class InterceptingScheduledExecutorService extends InterceptingExecutorService implements ScheduledExecutorService
Generalization ofInterceptingExecutorServiceto scheduled services.- Since:
- 2.51
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInterceptingScheduledExecutorService(ScheduledExecutorService base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScheduledExecutorServicedelegate()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 jenkins.util.InterceptingExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
InterceptingScheduledExecutorService
protected InterceptingScheduledExecutorService(ScheduledExecutorService base)
-
-
Method Detail
-
delegate
protected ScheduledExecutorService delegate()
- Overrides:
delegatein classInterceptingExecutorService
-
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
-
-