Table of Contents

Class ForkJoinTask<V>

Namespace
Java.Util.Concurrent
Assembly
MASES.JNet.dll
public class ForkJoinTask<V> : JVMBridgeBase<ForkJoinTask<V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

V
Inheritance
JVMBridgeBase
JVMBridgeBase<ForkJoinTask<V>>
ForkJoinTask<V>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<ForkJoinTask<V>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<ForkJoinTask<V>>.IsAssignableFrom<T>()
JVMBridgeBase<ForkJoinTask<V>>.Execute<T>(params T[])
JVMBridgeBase<ForkJoinTask<V>>.DynBridgeClazz
JVMBridgeBase<ForkJoinTask<V>>.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

ForkJoinTask()

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

[Obsolete("ForkJoinTask class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ForkJoinTask()

ForkJoinTask(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

[Obsolete("ForkJoinTask class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ForkJoinTask(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Exception

public Throwable Exception { get; }

Property Value

Throwable

ForkJoinTaskTag

public short ForkJoinTaskTag { get; }

Property Value

short

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

Pool

public static ForkJoinPool Pool { get; }

Property Value

ForkJoinPool

QueuedTaskCount

public static int QueuedTaskCount { get; }

Property Value

int

RawResult

public V RawResult { get; }

Property Value

V

SurplusQueuedTaskCount

public static int SurplusQueuedTaskCount { get; }

Property Value

int

Methods

Adapt(Runnable)

public static ForkJoinTask<object> Adapt(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Returns

ForkJoinTask<object>

ForkJoinTask

Adapt<T>(Runnable, T)

public static ForkJoinTask<T> Adapt<T>(Runnable arg0, T arg1)

Parameters

arg0 Runnable

Runnable

arg1 T

T

Returns

ForkJoinTask<T>

ForkJoinTask

Type Parameters

T

Adapt<T, Arg0ExtendsT>(Callable<Arg0ExtendsT>)

public static ForkJoinTask<T> Adapt<T, Arg0ExtendsT>(Callable<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Callable<Arg0ExtendsT>

Callable

Returns

ForkJoinTask<T>

ForkJoinTask

Type Parameters

T
Arg0ExtendsT

T

Cancel(bool)

public bool Cancel(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

CompareAndSetForkJoinTaskTag(short, short)

public bool CompareAndSetForkJoinTaskTag(short arg0, short arg1)

Parameters

arg0 short

short

arg1 short

short

Returns

bool

bool

Complete(V)

public void Complete(V arg0)

Parameters

arg0 V

V

CompleteExceptionally(JVMBridgeException)

public void CompleteExceptionally(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Fork()

public ForkJoinTask<V> Fork()

Returns

ForkJoinTask<V>

ForkJoinTask

Get()

public V Get()

Returns

V

V

Exceptions

InterruptedException
ExecutionException

Get(long, TimeUnit)

public V Get(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

V

V

Exceptions

InterruptedException
ExecutionException
TimeoutException

HelpQuiesce()

public static void HelpQuiesce()

InForkJoinPool()

public static bool InForkJoinPool()

Returns

bool

bool

Invoke()

public V Invoke()

Returns

V

V

InvokeAll(ForkJoinTask<object>, ForkJoinTask<object>)

public static void InvokeAll(ForkJoinTask<object> arg0, ForkJoinTask<object> arg1)

Parameters

arg0 ForkJoinTask<object>

ForkJoinTask

arg1 ForkJoinTask<object>

ForkJoinTask

InvokeAll(params ForkJoinTask<object>[])

public static void InvokeAll(params ForkJoinTask<object>[] arg0)

Parameters

arg0 ForkJoinTask<object>[]

ForkJoinTask

InvokeAll<T>(Collection<T>)

public static Collection<T> InvokeAll<T>(Collection<T> arg0)

Parameters

arg0 Collection<T>

Collection

Returns

Collection<T>

Collection

Type Parameters

T

IsCancelled()

public bool IsCancelled()

Returns

bool

bool

IsCompletedAbnormally()

public bool IsCompletedAbnormally()

Returns

bool

bool

IsCompletedNormally()

public bool IsCompletedNormally()

Returns

bool

bool

IsDone()

public bool IsDone()

Returns

bool

bool

Join()

public V Join()

Returns

V

V

QuietlyComplete()

public void QuietlyComplete()

QuietlyInvoke()

public void QuietlyInvoke()

QuietlyJoin()

public void QuietlyJoin()

Reinitialize()

public void Reinitialize()

SetForkJoinTaskTag(short)

public short SetForkJoinTaskTag(short arg0)

Parameters

arg0 short

short

Returns

short

short

TryUnfork()

public bool TryUnfork()

Returns

bool

bool

Operators

implicit operator Serializable(ForkJoinTask<V>)

Converter from ForkJoinTask<V> to Serializable

public static implicit operator Serializable(ForkJoinTask<V> t)

Parameters

t ForkJoinTask<V>

Returns

Serializable

implicit operator ForkJoinTask(ForkJoinTask<V>)

Converter from ForkJoinTask<V> to ForkJoinTask

public static implicit operator ForkJoinTask(ForkJoinTask<V> t)

Parameters

t ForkJoinTask<V>

Returns

ForkJoinTask

implicit operator Future<V>(ForkJoinTask<V>)

Converter from ForkJoinTask<V> to Future<V>

public static implicit operator Future<V>(ForkJoinTask<V> t)

Parameters

t ForkJoinTask<V>

Returns

Future<V>