Package io.opentelemetry.context
Class ContextScheduledExecutorService
- java.lang.Object
-
- io.opentelemetry.context.ForwardingExecutorService
-
- io.opentelemetry.context.ContextExecutorService
-
- io.opentelemetry.context.ContextScheduledExecutorService
-
- All Implemented Interfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService
class ContextScheduledExecutorService extends ContextExecutorService implements java.util.concurrent.ScheduledExecutorService
-
-
Constructor Summary
Constructors Constructor Description ContextScheduledExecutorService(Context context, java.util.concurrent.ScheduledExecutorService delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.concurrent.ScheduledExecutorServicedelegate()java.util.concurrent.ScheduledFuture<?>schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)<V> java.util.concurrent.ScheduledFuture<V>schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)java.util.concurrent.ScheduledFuture<?>scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)java.util.concurrent.ScheduledFuture<?>scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.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
-
-
-
-
Constructor Detail
-
ContextScheduledExecutorService
ContextScheduledExecutorService(Context context, java.util.concurrent.ScheduledExecutorService delegate)
-
-
Method Detail
-
delegate
java.util.concurrent.ScheduledExecutorService delegate()
- Overrides:
delegatein classForwardingExecutorService
-
schedule
public java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)- Specified by:
schedulein interfacejava.util.concurrent.ScheduledExecutorService
-
schedule
public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)- Specified by:
schedulein interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleAtFixedRate
public java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)- Specified by:
scheduleAtFixedRatein interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleWithFixedDelay
public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)- Specified by:
scheduleWithFixedDelayin interfacejava.util.concurrent.ScheduledExecutorService
-
-