|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.services.timer.SingletonTimerFactory
public class SingletonTimerFactory
This class implements the TimerFactory interface. It creates a singleton Timer instance. The class implements the ModuleControl interface, because it needs to cancel the Timer at system shutdown.
TimerFactory
,
ModuleControl
Field Summary | |
---|---|
private java.util.Timer |
singletonTimer
Singleton Timer instance. |
Constructor Summary | |
---|---|
SingletonTimerFactory()
Initializes this TimerFactory with a singleton Timer instance. |
Method Summary | |
---|---|
void |
boot(boolean create,
java.util.Properties properties)
Currently does nothing, singleton Timer instance is initialized in the constructor. |
java.util.Timer |
getCancellationTimer()
Returns a Timer object that can be used for adding TimerTasks that cancel executing statements. |
void |
stop()
Cancels the singleton Timer instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Timer singletonTimer
Constructor Detail |
---|
public SingletonTimerFactory()
Method Detail |
---|
public java.util.Timer getCancellationTimer()
getCancellationTimer
in interface TimerFactory
TimerFactory
public void boot(boolean create, java.util.Properties properties) throws StandardException
boot
in interface ModuleControl
StandardException
- Module cannot be started.ModuleControl
public void stop()
stop
in interface ModuleControl
ModuleControl
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |