Interface InstrumentedScheduledExecutorService
- All Superinterfaces:
AutoCloseable, Executor, ExecutorService, InstrumentedExecutor, InstrumentedExecutorService, RunnableInstrumenter, ScheduledExecutorService
- All Known Implementing Classes:
ContextPropagatingScheduledExecutorService
public interface InstrumentedScheduledExecutorService
extends InstrumentedExecutorService, ScheduledExecutorService
A
ScheduledExecutorService that has been instrumented.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionImplementors can override to specify the targetExecutorService.default ScheduledFuture<?> default <V> ScheduledFuture<V> default ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) default ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) Methods inherited from interface ExecutorService
closeMethods inherited from interface InstrumentedExecutor
executeMethods inherited from interface InstrumentedExecutorService
awaitTermination, instrument, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from interface RunnableInstrumenter
instrument
-
Method Details
-
getTarget
ScheduledExecutorService getTarget()Description copied from interface:InstrumentedExecutorServiceImplementors can override to specify the targetExecutorService.- Specified by:
getTargetin interfaceInstrumentedExecutor- Specified by:
getTargetin interfaceInstrumentedExecutorService- Returns:
- The target
ExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
scheduleAtFixedRate
default ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService
-
scheduleWithFixedDelay
default ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService
-