java.lang.Object
org.apache.jorphan.timer.TimerFactory
- public final class TimerFactory
- extends java.lang.Object
This non-instantiable non-extendible class acts as a Factory for
ITimer implementations.
- Version:
- $Revision: 1.4 $
|
Constructor Summary |
private |
TimerFactory()
Private default constructor to prevent instantiation. |
|
Method Summary |
static ITimer |
newTimer()
Creates a new instance of ITimer which is returned in 'ready'
state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerFactory
private TimerFactory()
- Private default constructor to prevent instantiation.
newTimer
public static ITimer newTimer()
- Creates a new instance of ITimer which is returned in 'ready'
state. If the JNI-based/high-resolution implementation is not available
this will return an instance of
JavaSystemTimer, so this
method is guaranteed not to fail.