Class ThreadPoolExecutor
- Namespace
- Java.Util.Concurrent
- Assembly
- MASES.JNet.dll
public class ThreadPoolExecutor : AbstractExecutorService, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IExecutorService, IExecutor
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Executor>ThreadPoolExecutor
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Executor>.SExecute<TNewClass, TReturn, TConverter>(IJavaType, string, params object[])JVMBridgeBase<Executor>.IsAssignableFrom(IJavaType)JVMBridgeBase<Executor>.IsAssignableFrom<T>()JVMBridgeBase<Executor>.Execute<T>(params T[])JVMBridgeBase<Executor>.DynBridgeClazzJVMBridgeBase<Executor>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
ThreadPoolExecutor()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public ThreadPoolExecutor()
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>)
public ThreadPoolExecutor(int arg0, int arg1, long arg2, TimeUnit arg3, BlockingQueue<Runnable> arg4)
Parameters
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, RejectedExecutionHandler)
public ThreadPoolExecutor(int arg0, int arg1, long arg2, TimeUnit arg3, BlockingQueue<Runnable> arg4, RejectedExecutionHandler arg5)
Parameters
arg0
intarg1
intarg2
longarg3
TimeUnitarg4
BlockingQueue<Runnable>arg5
RejectedExecutionHandler
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory)
public ThreadPoolExecutor(int arg0, int arg1, long arg2, TimeUnit arg3, BlockingQueue<Runnable> arg4, ThreadFactory arg5)
Parameters
arg0
intarg1
intarg2
longarg3
TimeUnitarg4
BlockingQueue<Runnable>arg5
ThreadFactory
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory, RejectedExecutionHandler)
public ThreadPoolExecutor(int arg0, int arg1, long arg2, TimeUnit arg3, BlockingQueue<Runnable> arg4, ThreadFactory arg5, RejectedExecutionHandler arg6)
Parameters
arg0
intarg1
intarg2
longarg3
TimeUnitarg4
BlockingQueue<Runnable>arg5
ThreadFactoryarg6
RejectedExecutionHandler
ThreadPoolExecutor(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public ThreadPoolExecutor(params object[] args)
Parameters
args
object[]
Properties
ActiveCount
public int ActiveCount { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CompletedTaskCount
public long CompletedTaskCount { get; }
Property Value
CorePoolSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#getCorePoolSize() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#setCorePoolSize(int)
public int CorePoolSize { get; set; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
LargestPoolSize
public int LargestPoolSize { get; }
Property Value
MaximumPoolSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#getMaximumPoolSize() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#setMaximumPoolSize(int)
public int MaximumPoolSize { get; set; }
Property Value
PoolSize
public int PoolSize { get; }
Property Value
Queue
public BlockingQueue<Runnable> Queue { get; }
Property Value
RejectedExecutionHandler
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#getRejectedExecutionHandler() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler)
public RejectedExecutionHandler RejectedExecutionHandler { get; set; }
Property Value
TaskCount
public long TaskCount { get; }
Property Value
ThreadFactory
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#getThreadFactory() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html#setThreadFactory(java.util.concurrent.ThreadFactory)
public ThreadFactory ThreadFactory { get; set; }
Property Value
Methods
AllowCoreThreadTimeOut(bool)
public void AllowCoreThreadTimeOut(bool arg0)
Parameters
AllowsCoreThreadTimeOut()
public bool AllowsCoreThreadTimeOut()
Returns
GetKeepAliveTime(TimeUnit)
public long GetKeepAliveTime(TimeUnit arg0)
Parameters
Returns
IsTerminating()
public bool IsTerminating()
Returns
PrestartAllCoreThreads()
public int PrestartAllCoreThreads()
Returns
PrestartCoreThread()
public bool PrestartCoreThread()
Returns
Purge()
public void Purge()
Remove(Runnable)
public bool Remove(Runnable arg0)
Parameters
Returns
SetKeepAliveTime(long, TimeUnit)
public void SetKeepAliveTime(long arg0, TimeUnit arg1)