|
|||||||||
| 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 TimerFactoryTimerFactory
public void boot(boolean create,
java.util.Properties properties)
throws StandardException
boot in interface ModuleControlStandardException - Module cannot be started.ModuleControlpublic void stop()
stop in interface ModuleControlModuleControl
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||