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
public class DaemonPoolExecutor extends SimpleDaemonPoolExecutor implements Executor, Controllable
AnExecutor
that uses aDaemonPool
to execute tasks.Instances of
DaemonPoolExecutor
are created with aDaemonPool
that is stopped. The executor should be started by calling theSimpleDaemonPoolExecutor.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 Classes Modifier and Type Class Description static class
DaemonPoolExecutor.DaemonPoolManagement
Daemon pool metrics and management.
-
Field Summary
-
Fields inherited from class com.oracle.coherence.grpc.SimpleDaemonPoolExecutor
f_pool
-
-
Constructor Summary
Constructors Constructor Description DaemonPoolExecutor(com.tangosol.internal.util.DaemonPool pool)
Create aDaemonPoolExecutor
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DaemonPoolExecutor.DaemonPoolManagement
getManagement()
Return 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 Detail
-
DaemonPoolExecutor
public DaemonPoolExecutor(com.tangosol.internal.util.DaemonPool pool)
Create aDaemonPoolExecutor
.- Parameters:
pool
- theDaemonPool
to use
-
-
Method Detail
-
newInstance
public static DaemonPoolExecutor newInstance(com.tangosol.internal.util.DefaultDaemonPoolDependencies deps)
Create aDaemonPoolExecutor
.- Parameters:
deps
- the configuration of theDaemonPool
- Returns:
- a
DaemonPoolExecutor
-
getManagement
public DaemonPoolExecutor.DaemonPoolManagement getManagement()
Return aDaemonPoolExecutor.DaemonPoolManagement
to manage this executor.- Returns:
- a
DaemonPoolExecutor.DaemonPoolManagement
to manage this executor
-
-