Interface InstrumentedScheduledExecutorService
-
- All Superinterfaces:
java.util.concurrent.Executor
,java.util.concurrent.ExecutorService
,InstrumentedExecutor
,InstrumentedExecutorService
,RunnableInstrumenter
,java.util.concurrent.ScheduledExecutorService
public interface InstrumentedScheduledExecutorService extends InstrumentedExecutorService, java.util.concurrent.ScheduledExecutorService
AScheduledExecutorService
that has been instrumented.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.concurrent.ScheduledExecutorService
getTarget()
Implementors can override to specify the targetExecutorService
.default java.util.concurrent.ScheduledFuture<?>
schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
default <V> java.util.concurrent.ScheduledFuture<V>
schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
default java.util.concurrent.ScheduledFuture<?>
scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
default java.util.concurrent.ScheduledFuture<?>
scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.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 Detail
-
getTarget
java.util.concurrent.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 java.util.concurrent.ScheduledFuture<?> schedule(@NonNull java.lang.Runnable command, long delay, @NonNull java.util.concurrent.TimeUnit unit)
- Specified by:
schedule
in interfacejava.util.concurrent.ScheduledExecutorService
-
schedule
default <V> java.util.concurrent.ScheduledFuture<V> schedule(@NonNull java.util.concurrent.Callable<V> callable, long delay, @NonNull java.util.concurrent.TimeUnit unit)
- Specified by:
schedule
in interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleAtFixedRate
default java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(@NonNull java.lang.Runnable command, long initialDelay, long period, @NonNull java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleAtFixedRate
in interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleWithFixedDelay
default java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(@NonNull java.lang.Runnable command, long initialDelay, long delay, @NonNull java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleWithFixedDelay
in interfacejava.util.concurrent.ScheduledExecutorService
-
-