Class CountedCompleter<T>
- Namespace
- Java.Util.Concurrent
- Assembly
- MASES.JNet.dll
public class CountedCompleter<T> : ForkJoinTask<T>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
T
- Inheritance
-
ForkJoinTask<T>CountedCompleter<T>
- Implements
- Inherited Members
-
JVMBridgeBase<ForkJoinTask<T>>.SExecuteWithSignature<TReturn>(Type, string, string, params object[])
- Extension Methods
Constructors
CountedCompleter()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("CountedCompleter 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 CountedCompleter()
CountedCompleter(IJVMBridgeBaseInitializer)
Internal constructor: used internally from JCOBridge
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public CountedCompleter(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
CountedCompleter(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("CountedCompleter 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 CountedCompleter(params object[] args)
Parameters
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
Completer
public CountedCompleter<object> Completer { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
PendingCount
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CountedCompleter.html#getPendingCount-- https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CountedCompleter.html#setPendingCount-int-
public int PendingCount { get; set; }
Property Value
Root
public CountedCompleter<object> Root { get; }
Property Value
Methods
AddToPendingCount(int)
public void AddToPendingCount(int arg0)
Parameters
CompareAndSetPendingCount(int, int)
public bool CompareAndSetPendingCount(int arg0, int arg1)
Parameters
Returns
Compute()
public void Compute()
DecrementPendingCountUnlessZero()
public int DecrementPendingCountUnlessZero()
Returns
FirstComplete()
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CountedCompleter.html#firstComplete--
public CountedCompleter<object> FirstComplete()
Returns
HelpComplete(int)
public void HelpComplete(int arg0)
Parameters
NextComplete()
public CountedCompleter<object> NextComplete()
Returns
OnCompletion(CountedCompleter<object>)
public void OnCompletion(CountedCompleter<object> arg0)
Parameters
OnExceptionalCompletion(JVMBridgeException, CountedCompleter<object>)
public bool OnExceptionalCompletion(JVMBridgeException arg0, CountedCompleter<object> arg1)
Parameters
Returns
PropagateCompletion()
public void PropagateCompletion()
QuietlyCompleteRoot()
public void QuietlyCompleteRoot()
TryComplete()
public void TryComplete()
Operators
implicit operator CountedCompleter(CountedCompleter<T>)
Converter from CountedCompleter<T> to CountedCompleter
public static implicit operator CountedCompleter(CountedCompleter<T> t)
Parameters
tCountedCompleter<T>