Package io.opentelemetry.context
Class ContextScheduledExecutorService
java.lang.Object
io.opentelemetry.context.ForwardingExecutorService
io.opentelemetry.context.ContextExecutorService
io.opentelemetry.context.ContextScheduledExecutorService
- All Implemented Interfaces:
AutoCloseable
,Executor
,ExecutorService
,ScheduledExecutorService
class ContextScheduledExecutorService
extends ContextExecutorService
implements ScheduledExecutorService
-
Constructor Summary
ConstructorsConstructorDescriptionContextScheduledExecutorService
(Context context, ScheduledExecutorService delegate) -
Method Summary
Modifier and TypeMethodDescription(package private) ScheduledExecutorService
delegate()
<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.ContextExecutorService
context, execute, invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
Methods inherited from class io.opentelemetry.context.ForwardingExecutorService
awaitTermination, 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
-
Constructor Details
-
ContextScheduledExecutorService
ContextScheduledExecutorService(Context context, ScheduledExecutorService delegate)
-
-
Method Details
-
delegate
ScheduledExecutorService delegate()- Overrides:
delegate
in classForwardingExecutorService
-
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
-