Class ForwardingExecutorService
java.lang.Object
io.opentelemetry.context.ForwardingExecutorService
- All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService
- Direct Known Subclasses:
ContextExecutorService, CurrentContextExecutorService
A
ExecutorService that implements methods that don't need Context.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanawaitTermination(long timeout, TimeUnit unit) (package private) ExecutorServicedelegate()final booleanfinal booleanfinal voidshutdown()protected static <T> Collection<? extends Callable<T>> wrap(Context context, Collection<? extends Callable<T>> tasks)
-
Field Details
-
delegate
-
-
Constructor Details
-
ForwardingExecutorService
-
-
Method Details
-
delegate
ExecutorService delegate() -
shutdown
public final void shutdown()- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
public final boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public final boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
wrap
protected static <T> Collection<? extends Callable<T>> wrap(Context context, Collection<? extends Callable<T>> tasks)
-