Table of Contents

Class ForkJoinPool

Namespace
Java.Util.Concurrent
Assembly
MASES.JNet.dll
public class ForkJoinPool : AbstractExecutorService, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IExecutorService, IExecutor
Inheritance
JVMBridgeBase
JVMBridgeBase<Executor>
ForkJoinPool
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
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

ForkJoinPool()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public ForkJoinPool()

ForkJoinPool(int)

public ForkJoinPool(int arg0)

Parameters

arg0 int

int

ForkJoinPool(int, ForkJoinWorkerThreadFactory, UncaughtExceptionHandler, bool)

public ForkJoinPool(int arg0, ForkJoinPool.ForkJoinWorkerThreadFactory arg1, Thread.UncaughtExceptionHandler arg2, bool arg3)

Parameters

arg0 int

int

arg1 ForkJoinPool.ForkJoinWorkerThreadFactory

ForkJoinPool.ForkJoinWorkerThreadFactory

arg2 Thread.UncaughtExceptionHandler

Thread.UncaughtExceptionHandler

arg3 bool

bool

ForkJoinPool(int, ForkJoinWorkerThreadFactory, UncaughtExceptionHandler, bool, int, int, int, Predicate, long, TimeUnit)

public ForkJoinPool(int arg0, ForkJoinPool.ForkJoinWorkerThreadFactory arg1, Thread.UncaughtExceptionHandler arg2, bool arg3, int arg4, int arg5, int arg6, Predicate arg7, long arg8, TimeUnit arg9)

Parameters

arg0 int

int

arg1 ForkJoinPool.ForkJoinWorkerThreadFactory

ForkJoinPool.ForkJoinWorkerThreadFactory

arg2 Thread.UncaughtExceptionHandler

Thread.UncaughtExceptionHandler

arg3 bool

bool

arg4 int

int

arg5 int

int

arg6 int

int

arg7 Predicate

Predicate

arg8 long

long

arg9 TimeUnit

TimeUnit

ForkJoinPool(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 ForkJoinPool(params object[] args)

Parameters

args object[]

Properties

ActiveThreadCount

public int ActiveThreadCount { get; }

Property Value

int

AsyncMode

public bool AsyncMode { get; }

Property Value

bool

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CommonPoolParallelism

public static int CommonPoolParallelism { get; }

Property Value

int

Factory

public ForkJoinPool.ForkJoinWorkerThreadFactory Factory { get; }

Property Value

ForkJoinPool.ForkJoinWorkerThreadFactory

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

Parallelism

public int Parallelism { get; }

Property Value

int

PoolSize

public int PoolSize { get; }

Property Value

int

QueuedSubmissionCount

public int QueuedSubmissionCount { get; }

Property Value

int

QueuedTaskCount

public long QueuedTaskCount { get; }

Property Value

long

RunningThreadCount

public int RunningThreadCount { get; }

Property Value

int

StealCount

public long StealCount { get; }

Property Value

long

defaultForkJoinWorkerThreadFactory

public static ForkJoinPool.ForkJoinWorkerThreadFactory defaultForkJoinWorkerThreadFactory { get; }

Property Value

ForkJoinPool.ForkJoinWorkerThreadFactory

Methods

AwaitQuiescence(long, TimeUnit)

public bool AwaitQuiescence(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

bool

bool

CommonPool()

public static ForkJoinPool CommonPool()

Returns

ForkJoinPool

ForkJoinPool

Execute(ForkJoinTask<object>)

public void Execute(ForkJoinTask<object> arg0)

Parameters

arg0 ForkJoinTask<object>

ForkJoinTask

HasQueuedSubmissions()

public bool HasQueuedSubmissions()

Returns

bool

bool

Invoke<T>(ForkJoinTask<T>)

public T Invoke<T>(ForkJoinTask<T> arg0)

Parameters

arg0 ForkJoinTask<T>

ForkJoinTask

Returns

T

T

Type Parameters

T

IsQuiescent()

public bool IsQuiescent()

Returns

bool

bool

IsTerminating()

public bool IsTerminating()

Returns

bool

bool

ManagedBlock(ManagedBlocker)

public static void ManagedBlock(ForkJoinPool.ManagedBlocker arg0)

Parameters

arg0 ForkJoinPool.ManagedBlocker

ForkJoinPool.ManagedBlocker

Exceptions

InterruptedException

Submit<T>(ForkJoinTask<T>)

public ForkJoinTask<T> Submit<T>(ForkJoinTask<T> arg0)

Parameters

arg0 ForkJoinTask<T>

ForkJoinTask

Returns

ForkJoinTask<T>

ForkJoinTask

Type Parameters

T