Package com.oracle.coherence.grpc.proxy
Class DaemonPoolExecutor
java.lang.Object
com.oracle.coherence.grpc.SimpleDaemonPoolExecutor
com.oracle.coherence.grpc.proxy.DaemonPoolExecutor
- All Implemented Interfaces:
ClassLoaderAware,Controllable,Executor
An
Executor that uses a DaemonPool to execute tasks.
Instances of DaemonPoolExecutor are created with a DaemonPool
that is stopped. The executor should be started by calling the SimpleDaemonPoolExecutor.start()
method.
Tasks submitted without calling start will be executed immediately on the calling thread.
If a tracing Span is available when tasks are added to this executor then
the span will be re-activated when the tasks are run.
- Since:
- 20.06
- Author:
- Jonathan Knight 2019.11.19
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDaemon pool metrics and management. -
Field Summary
Fields inherited from class com.oracle.coherence.grpc.SimpleDaemonPoolExecutor
f_pool -
Constructor Summary
ConstructorsConstructorDescriptionDaemonPoolExecutor(com.tangosol.internal.util.DaemonPool pool) Create aDaemonPoolExecutor. -
Method Summary
Modifier and TypeMethodDescriptionReturn aDaemonPoolExecutor.DaemonPoolManagementto manage this executor.static DaemonPoolExecutornewInstance(com.tangosol.internal.util.DefaultDaemonPoolDependencies deps) Create aDaemonPoolExecutor.Methods inherited from class com.oracle.coherence.grpc.SimpleDaemonPoolExecutor
configure, execute, getContextClassLoader, getPool, isRunning, isStuck, setContextClassLoader, shutdown, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.io.ClassLoaderAware
getContextClassLoader, setContextClassLoader
-
Constructor Details
-
DaemonPoolExecutor
public DaemonPoolExecutor(com.tangosol.internal.util.DaemonPool pool) Create aDaemonPoolExecutor.- Parameters:
pool- theDaemonPoolto use
-
-
Method Details
-
newInstance
public static DaemonPoolExecutor newInstance(com.tangosol.internal.util.DefaultDaemonPoolDependencies deps) Create aDaemonPoolExecutor.- Parameters:
deps- the configuration of theDaemonPool- Returns:
- a
DaemonPoolExecutor
-
getManagement
Return aDaemonPoolExecutor.DaemonPoolManagementto manage this executor.- Returns:
- a
DaemonPoolExecutor.DaemonPoolManagementto manage this executor
-