| java.lang.Object org.apache.derby.impl.services.timer.SingletonTimerFactory
SingletonTimerFactory | public class SingletonTimerFactory implements TimerFactory,ModuleControl(Code) | | 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.
See Also: TimerFactory See Also: ModuleControl |
Constructor Summary | |
public | SingletonTimerFactory() Initializes this TimerFactory with a singleton Timer instance. |
Method Summary | |
public void | boot(boolean create, Properties properties) Currently does nothing, singleton Timer instance is initialized
in the constructor. | public Timer | getCancellationTimer() Returns a Timer object that can be used for adding TimerTasks
that cancel executing statements. | public void | stop() Cancels the singleton Timer instance. |
SingletonTimerFactory | public SingletonTimerFactory()(Code) | | Initializes this TimerFactory with a singleton Timer instance.
|
boot | public void boot(boolean create, Properties properties) throws StandardException(Code) | | Currently does nothing, singleton Timer instance is initialized
in the constructor.
Implements the ModuleControl interface.
See Also: ModuleControl |
getCancellationTimer | public Timer getCancellationTimer()(Code) | | Returns a Timer object that can be used for adding TimerTasks
that cancel executing statements.
Implements the TimerFactory interface.
a Timer object for cancelling statements. See Also: TimerFactory |
stop | public void stop()(Code) | | Cancels the singleton Timer instance.
Implements the ModuleControl interface.
See Also: ModuleControl |
|
|