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
AnExecutorthat uses aDaemonPoolto execute tasks.Instances of
DaemonPoolExecutorare created with aDaemonPoolthat 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
Spanis 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 classDaemonPoolExecutor.DaemonPoolManagementDaemon 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.DaemonPoolManagementgetManagement()Return 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, 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- theDaemonPoolto 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.DaemonPoolManagementto manage this executor.- Returns:
- a
DaemonPoolExecutor.DaemonPoolManagementto manage this executor
-
-