Package io.opentelemetry.context
Class CurrentContextScheduledExecutorService
java.lang.Object
io.opentelemetry.context.ForwardingExecutorService
io.opentelemetry.context.CurrentContextExecutorService
io.opentelemetry.context.CurrentContextScheduledExecutorService
- All Implemented Interfaces:
AutoCloseable
,Executor
,ExecutorService
,ScheduledExecutorService
final class CurrentContextScheduledExecutorService
extends CurrentContextExecutorService
implements ScheduledExecutorService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> ScheduledFuture
<V> scheduleAtFixedRate
(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay
(Runnable command, long initialDelay, long delay, TimeUnit unit) Methods inherited from class io.opentelemetry.context.CurrentContextExecutorService
execute, invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
Methods inherited from class io.opentelemetry.context.ForwardingExecutorService
awaitTermination, delegate, isShutdown, isTerminated, shutdown, shutdownNow, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, close, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Field Details
-
delegate
-
-
Constructor Details
-
CurrentContextScheduledExecutorService
CurrentContextScheduledExecutorService(ScheduledExecutorService delegate)
-
-
Method Details
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRate
in interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelay
in interfaceScheduledExecutorService
-