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
Modifier and TypeClassDescriptionstatic class
Daemon pool metrics and management. -
Field Summary
Fields inherited from class com.oracle.coherence.grpc.SimpleDaemonPoolExecutor
f_pool
-
Constructor Summary
ConstructorDescriptionDaemonPoolExecutor
(com.tangosol.internal.util.DaemonPool pool) Create aDaemonPoolExecutor
. -
Method Summary
Modifier and TypeMethodDescriptionReturn aDaemonPoolExecutor.DaemonPoolManagement
to manage this executor.static DaemonPoolExecutor
newInstance
(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, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.io.ClassLoaderAware
getContextClassLoader, setContextClassLoader
-
Constructor Details
-
DaemonPoolExecutor
public DaemonPoolExecutor(com.tangosol.internal.util.DaemonPool pool) Create aDaemonPoolExecutor
.- Parameters:
pool
- theDaemonPool
to 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.DaemonPoolManagement
to manage this executor.- Returns:
- a
DaemonPoolExecutor.DaemonPoolManagement
to manage this executor
-