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) ScheduledExecutorServicedelegate()<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, submitMethods inherited from class io.opentelemetry.context.ForwardingExecutorService
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNow, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
delegatein classForwardingExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService
-