public class TaskCompletionSource_1<TResult extends IJCOBridgeReflected> extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.TaskCompletionSource`1
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Threading.Tasks.TaskCompletionSource`1
|
static org.mases.jcobridge.JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TaskCompletionSource_1() |
TaskCompletionSource_1(NetObject state) |
TaskCompletionSource_1(NetObject state,
TaskCreationOptions creationOptions) |
TaskCompletionSource_1(java.lang.Object instance)
Internal constructor.
|
TaskCompletionSource_1(TaskCreationOptions creationOptions) |
| Modifier and Type | Method and Description |
|---|---|
static TaskCompletionSource_1 |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TaskCompletionSource_1, a cast assert is made to check if types are compatible. |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
org.mases.jcobridge.JCType |
getJCOType()
Returns the instantiated class Type
|
Task_1 |
getTask() |
void |
SetCanceled() |
void |
SetCanceled(CancellationToken cancellationToken) |
void |
SetException(IEnumerable_1 exceptions) |
void |
SetException(NetException exception) |
void |
SetFromTask(Task_1 completedTask) |
void |
setJCOInstance(org.mases.jcobridge.JCObject instance) |
void |
SetResult(TResult result) |
boolean |
TrySetCanceled() |
boolean |
TrySetCanceled(CancellationToken cancellationToken) |
boolean |
TrySetException(IEnumerable_1 exceptions) |
boolean |
TrySetException(NetException exception) |
boolean |
TrySetFromTask(Task_1 completedTask) |
boolean |
TrySetResult(TResult result) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public static org.mases.jcobridge.JCType classType
JCTypepublic TaskCompletionSource_1()
throws java.lang.Throwable
java.lang.Throwablepublic TaskCompletionSource_1(NetObject state) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionpublic TaskCompletionSource_1(NetObject state, TaskCreationOptions creationOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ArgumentNullException
public TaskCompletionSource_1(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic TaskCompletionSource_1(TaskCreationOptions creationOptions) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionpublic static TaskCompletionSource_1 cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TaskCompletionSource_1, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTaskCompletionSource_1 instancejava.lang.Throwable - in case of error during cast operationpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic org.mases.jcobridge.JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic Task_1 getTask() throws java.lang.Throwable
java.lang.Throwablepublic void SetCanceled()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
InvalidOperationException,
NullReferenceException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionInvalidOperationExceptionNullReferenceExceptionpublic void SetCanceled(CancellationToken cancellationToken) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
public void SetException(IEnumerable_1 exceptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException
public void SetException(NetException exception) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException
public void SetFromTask(Task_1 completedTask) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, TaskSchedulerException, ObjectDisposedException, OperationCanceledException, IndexOutOfRangeException, NullReferenceException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionEventSourceExceptionTaskSchedulerExceptionObjectDisposedExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNullReferenceExceptionpublic void setJCOInstance(org.mases.jcobridge.JCObject instance)
setJCOInstance in class NetObjectpublic void SetResult(TResult result) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException
public boolean TrySetCanceled()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
IndexOutOfRangeException
public boolean TrySetCanceled(CancellationToken cancellationToken) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
public boolean TrySetException(IEnumerable_1 exceptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException
public boolean TrySetException(NetException exception) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException
public boolean TrySetFromTask(Task_1 completedTask) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, TaskSchedulerException, OutOfMemoryException, NullReferenceException, OperationCanceledException, IndexOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionTaskSchedulerExceptionOutOfMemoryExceptionNullReferenceExceptionOperationCanceledExceptionIndexOutOfRangeExceptionFormatExceptionpublic boolean TrySetResult(TResult result) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, RankException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException