public class Timer extends Component
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Timers.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.ComponentModel.TypeConverter, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.ComponentModel.TypeConverter
|
static java.lang.String |
className
Qualified class name: System.Timers.Timer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Timer()
Initializes a new instance by invoking the .NET constructor.
|
Timer(double interval)
Initializes a new instance by invoking the .NET constructor.
|
Timer(java.lang.Object instance)
Internal constructor.
|
Timer(TimeSpan interval)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElapsed(ElapsedEventHandler handler)
Invokes the .NET member addElapsed.
|
void |
BeginInit()
Invokes the .NET member BeginInit.
|
static Timer |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Timer, a cast assert is made to check if types are compatible. |
void |
Close()
Invokes the .NET member Close.
|
void |
EndInit()
Invokes the .NET member EndInit.
|
boolean |
getAutoReset()
Gets the value of the .NET property AutoReset.
|
boolean |
getEnabled()
Gets the value of the .NET property Enabled.
|
double |
getInterval()
Gets the value of the .NET property Interval.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
ISynchronizeInvoke |
getSynchronizingObject()
Gets the value of the .NET property SynchronizingObject.
|
void |
removeElapsed(ElapsedEventHandler handler)
Invokes the .NET member removeElapsed.
|
void |
setAutoReset(boolean AutoReset)
Sets the value of the .NET property AutoReset.
|
void |
setEnabled(boolean Enabled)
Sets the value of the .NET property Enabled.
|
void |
setInterval(double Interval)
Sets the value of the .NET property Interval.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setSynchronizingObject(ISynchronizeInvoke SynchronizingObject)
Sets the value of the .NET property SynchronizingObject.
|
void |
Start()
Invokes the .NET member Start.
|
void |
Stop()
Invokes the .NET member Stop.
|
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, 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,
ArgumentOutOfRangeException,
NotSupportedException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
InvalidTimeZoneException,
OverflowException,
SecurityException
java.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itOverflowException - if the .NET member raises itSecurityException - if the .NET member raises itpublic Timer(double interval)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
InvalidTimeZoneException,
OverflowException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException
interval - the argument of type doublejava.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itOverflowException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic Timer(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic Timer(TimeSpan interval) throws java.lang.Throwable, PlatformNotSupportedException, OverflowException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException
interval - the argument of type TimeSpanjava.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void addElapsed(ElapsedEventHandler handler) throws java.lang.Throwable
handler - the argument of type ElapsedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void BeginInit()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic 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 void Close()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itpublic void EndInit()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ObjectDisposedException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic boolean getAutoReset()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getEnabled()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic double getInterval()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Componentpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Componentpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Componentnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Componentpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Componentpublic ISynchronizeInvoke getSynchronizingObject() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeElapsed(ElapsedEventHandler handler) throws java.lang.Throwable
handler - the argument of type ElapsedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setAutoReset(boolean AutoReset)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
FormatException,
EventSourceException,
OutOfMemoryException
AutoReset - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setEnabled(boolean Enabled)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
FormatException,
OutOfMemoryException
Enabled - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setInterval(double Interval)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
EventSourceException,
OutOfMemoryException
Interval - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itEventSourceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Componentinstance - the new underlying objectpublic void setSynchronizingObject(ISynchronizeInvoke SynchronizingObject) throws java.lang.Throwable
SynchronizingObject - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Start()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ObjectDisposedException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic void Stop()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ObjectDisposedException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises it