public class Timer extends MarshalByRefObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Timer
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=10.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.Timer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Timer() |
Timer(java.lang.Object instance)
Internal constructor.
|
Timer(TimerCallback callback) |
Timer(TimerCallback callback,
NetObject state,
int dueTime,
int period) |
Timer(TimerCallback callback,
NetObject state,
long dueTime,
long period) |
Timer(TimerCallback callback,
NetObject state,
TimeSpan dueTime,
TimeSpan period) |
Timer(TimerCallback callback,
NetObject state,
UInt32 dueTime,
UInt32 period) |
| Modifier and Type | Method and Description |
|---|---|
static Timer |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Timer, a cast assert is made to check if types are compatible. |
boolean |
Change(int dueTime,
int period) |
boolean |
Change(long dueTime,
long period) |
boolean |
Change(TimeSpan dueTime,
TimeSpan period) |
boolean |
Change(UInt32 dueTime,
UInt32 period) |
void |
close() |
void |
Dispose() |
boolean |
Dispose(WaitHandle notifyObject) |
ValueTask |
DisposeAsync() |
static long |
getActiveCount() |
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
|
JCType |
getJCOType()
Returns the instantiated class Type
|
void |
setJCOInstance(JCObject instance) |
GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Timer()
throws java.lang.Throwable
java.lang.Throwablepublic Timer(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Timer(TimerCallback callback) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, LockRecursionException, OutOfMemoryException, AbandonedMutexException, EventSourceException, ThreadStateException
public Timer(TimerCallback callback, NetObject state, int dueTime, int period) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, LockRecursionException, AbandonedMutexException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionLockRecursionExceptionAbandonedMutexExceptionOutOfMemoryExceptionpublic Timer(TimerCallback callback, NetObject state, long dueTime, long period) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, LockRecursionException, OutOfMemoryException, AbandonedMutexException, EventSourceException, ThreadStateException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionLockRecursionExceptionOutOfMemoryExceptionAbandonedMutexExceptionEventSourceExceptionThreadStateExceptionpublic Timer(TimerCallback callback, NetObject state, TimeSpan dueTime, TimeSpan period) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, LockRecursionException, OutOfMemoryException, AbandonedMutexException, EventSourceException, ThreadStateException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionLockRecursionExceptionOutOfMemoryExceptionAbandonedMutexExceptionEventSourceExceptionThreadStateExceptionpublic Timer(TimerCallback callback, NetObject state, UInt32 dueTime, UInt32 period) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, LockRecursionException, OutOfMemoryException, AbandonedMutexException, EventSourceException, ThreadStateException
public static Timer cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Timer, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTimer instancejava.lang.Throwable - in case of error during cast operationpublic boolean Change(int dueTime,
int period)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
LockRecursionException,
NullReferenceException,
OutOfMemoryException,
AbandonedMutexException,
EventSourceException,
ThreadStateException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionLockRecursionExceptionNullReferenceExceptionOutOfMemoryExceptionAbandonedMutexExceptionEventSourceExceptionThreadStateExceptionpublic boolean Change(long dueTime,
long period)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
LockRecursionException,
NullReferenceException,
OutOfMemoryException,
AbandonedMutexException,
EventSourceException,
ThreadStateException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionLockRecursionExceptionNullReferenceExceptionOutOfMemoryExceptionAbandonedMutexExceptionEventSourceExceptionThreadStateExceptionpublic boolean Change(TimeSpan dueTime, TimeSpan period) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, LockRecursionException, OutOfMemoryException, ObjectDisposedException, AbandonedMutexException, EventSourceException, ThreadStateException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionLockRecursionExceptionOutOfMemoryExceptionObjectDisposedExceptionAbandonedMutexExceptionEventSourceExceptionThreadStateExceptionpublic boolean Change(UInt32 dueTime, UInt32 period) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, LockRecursionException, NullReferenceException, OutOfMemoryException, ObjectDisposedException, AbandonedMutexException, ArgumentNullException, InvalidOperationException, EventSourceException, ArgumentOutOfRangeException, ThreadStateException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionLockRecursionExceptionNullReferenceExceptionOutOfMemoryExceptionObjectDisposedExceptionAbandonedMutexExceptionArgumentNullExceptionInvalidOperationExceptionEventSourceExceptionArgumentOutOfRangeExceptionThreadStateExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
PlatformNotSupportedException,
LockRecursionException,
NotSupportedException,
OutOfMemoryException,
ObjectDisposedException,
AbandonedMutexException,
SynchronizationLockException
public boolean Dispose(WaitHandle notifyObject) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, LockRecursionException, OutOfMemoryException, AbandonedMutexException, SynchronizationLockException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionLockRecursionExceptionOutOfMemoryExceptionAbandonedMutexExceptionSynchronizationLockExceptionpublic ValueTask DisposeAsync() throws java.lang.Throwable, PlatformNotSupportedException, LockRecursionException, NotSupportedException, OutOfMemoryException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, FormatException, ArgumentNullException, SynchronizationLockException
java.lang.ThrowablePlatformNotSupportedExceptionLockRecursionExceptionNotSupportedExceptionOutOfMemoryExceptionObjectDisposedExceptionAbandonedMutexExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionFormatExceptionArgumentNullExceptionSynchronizationLockExceptionpublic static long getActiveCount()
throws java.lang.Throwable,
PlatformNotSupportedException,
LockRecursionException,
ArgumentException,
NullReferenceException,
NotSupportedException,
OutOfMemoryException,
ObjectDisposedException,
ArgumentNullException,
AbandonedMutexException,
SynchronizationLockException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObject