Table of Contents

Class ThreadPoolExecutor

Namespace
Java.Util.Concurrent
Assembly
MASES.JNet.dll
public class ThreadPoolExecutor : AbstractExecutorService, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IExecutorService, IExecutor
Inheritance
JVMBridgeBase
JVMBridgeBase<Executor>
ThreadPoolExecutor
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Executor>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Executor>.IsAssignableFrom<T>()
JVMBridgeBase<Executor>.Execute<T>(params T[])
JVMBridgeBase<Executor>.DynBridgeClazz
JVMBridgeBase<Executor>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

arg0 int

int

arg1 int

int

arg2 long

long

arg3 TimeUnit

TimeUnit

arg4 BlockingQueue<Runnable>

BlockingQueue

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 int

int

arg1 int

int

arg2 long

long

arg3 TimeUnit

TimeUnit

arg4 BlockingQueue<Runnable>

BlockingQueue

arg5 RejectedExecutionHandler

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 int

int

arg1 int

int

arg2 long

long

arg3 TimeUnit

TimeUnit

arg4 BlockingQueue<Runnable>

BlockingQueue

arg5 ThreadFactory

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 int

int

arg1 int

int

arg2 long

long

arg3 TimeUnit

TimeUnit

arg4 BlockingQueue<Runnable>

BlockingQueue

arg5 ThreadFactory

ThreadFactory

arg6 RejectedExecutionHandler

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

int

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CompletedTaskCount

public long CompletedTaskCount { get; }

Property Value

long

CorePoolSize

public int CorePoolSize { get; set; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

LargestPoolSize

public int LargestPoolSize { get; }

Property Value

int

MaximumPoolSize

public int MaximumPoolSize { get; set; }

Property Value

int

PoolSize

public int PoolSize { get; }

Property Value

int

Queue

public BlockingQueue<Runnable> Queue { get; }

Property Value

BlockingQueue<Runnable>

RejectedExecutionHandler

public RejectedExecutionHandler RejectedExecutionHandler { get; set; }

Property Value

RejectedExecutionHandler

TaskCount

public long TaskCount { get; }

Property Value

long

ThreadFactory

public ThreadFactory ThreadFactory { get; set; }

Property Value

ThreadFactory

Methods

AllowCoreThreadTimeOut(bool)

public void AllowCoreThreadTimeOut(bool arg0)

Parameters

arg0 bool

bool

AllowsCoreThreadTimeOut()

public bool AllowsCoreThreadTimeOut()

Returns

bool

bool

GetKeepAliveTime(TimeUnit)

public long GetKeepAliveTime(TimeUnit arg0)

Parameters

arg0 TimeUnit

TimeUnit

Returns

long

long

IsTerminating()

public bool IsTerminating()

Returns

bool

bool

PrestartAllCoreThreads()

public int PrestartAllCoreThreads()

Returns

int

int

PrestartCoreThread()

public bool PrestartCoreThread()

Returns

bool

bool

Purge()

public void Purge()

Remove(Runnable)

public bool Remove(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Returns

bool

bool

SetKeepAliveTime(long, TimeUnit)

public void SetKeepAliveTime(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit