Interface InstrumentedScheduledExecutorService
- All Superinterfaces:
Executor
,ExecutorService
,InstrumentedExecutor
,InstrumentedExecutorService
,RunnableInstrumenter
,ScheduledExecutorService
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
(@NonNull Runnable command, long initialDelay, long period, @NonNull TimeUnit unit) default ScheduledFuture<?>
scheduleWithFixedDelay
(@NonNull Runnable command, long initialDelay, long delay, @NonNull TimeUnit unit) Methods inherited from interface io.micronaut.scheduling.instrument.InstrumentedExecutor
execute
Methods inherited from interface io.micronaut.scheduling.instrument.InstrumentedExecutorService
awaitTermination, instrument, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
Methods inherited from interface io.micronaut.scheduling.instrument.RunnableInstrumenter
instrument
-
Method Details
-
getTarget
ScheduledExecutorService getTarget()Description copied from interface:InstrumentedExecutorService
Implementors can override to specify the targetExecutorService
.- Specified by:
getTarget
in interfaceInstrumentedExecutor
- Specified by:
getTarget
in interfaceInstrumentedExecutorService
- Returns:
- The target
ExecutorService
-
schedule
default ScheduledFuture<?> schedule(@NonNull @NonNull Runnable command, long delay, @NonNull @NonNull TimeUnit unit) - Specified by:
schedule
in interfaceScheduledExecutorService
-
schedule
default <V> ScheduledFuture<V> schedule(@NonNull @NonNull Callable<V> callable, long delay, @NonNull @NonNull TimeUnit unit) - Specified by:
schedule
in interfaceScheduledExecutorService
-
scheduleAtFixedRate
default ScheduledFuture<?> scheduleAtFixedRate(@NonNull @NonNull Runnable command, long initialDelay, long period, @NonNull @NonNull TimeUnit unit) - Specified by:
scheduleAtFixedRate
in interfaceScheduledExecutorService
-
scheduleWithFixedDelay
default ScheduledFuture<?> scheduleWithFixedDelay(@NonNull @NonNull Runnable command, long initialDelay, long delay, @NonNull @NonNull TimeUnit unit) - Specified by:
scheduleWithFixedDelay
in interfaceScheduledExecutorService
-