TimerFactory, ModuleControl
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | cancelCount
The number of times |
| private final Timer | singletonTimer
Singleton Timer instance. |
| private StringBuilder | warnings
Initialization warnings. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | boot(boolean
not used create, Properties not used properties)Implements org. Currently does nothing, singleton Timer instance is initialized in the constructor. |
| public void | cancel(TimerTask
the task to cancel task)Implements org. Cancel a task. |
| private ClassLoader | Returns: the context class loader of the current thread if it is not the same class loader as the one used by the system classes or the Derby classes and we have permission to read the class loaders, ornull otherwiseCheck if the current context class loader could cause a memory leak (DERBY-3745) if it is inherited by the timer thread, and return it if that is the case. |
| public String | Returns: See legendReturn any warnings generated during the initialization of this class, or null if none |
| public void | schedule(TimerTask
the task to schedule task, long how many milliseconds to wait before executing the task delay)Implements org. Schedule a task. |
| private void | |
| public void | stop()
Implements org. Cancels the singleton Timer instance. |
| cancelCount | back to summary |
|---|---|
| private final AtomicInteger cancelCount The number of times | |
| singletonTimer | back to summary |
|---|---|
| private final Timer singletonTimer Singleton Timer instance. | |
| warnings | back to summary |
|---|---|
| private StringBuilder warnings Initialization warnings. See | |
| SingletonTimerFactory | back to summary |
|---|---|
| public SingletonTimerFactory() Initializes this TimerFactory with a singleton Timer instance. | |
| boot | back to summary |
|---|---|
| public void boot(boolean create, Properties properties) throws StandardException Implements org. Currently does nothing, singleton Timer instance is initialized in the constructor. Implements the ModuleControl interface.
| |
| cancel | back to summary |
|---|---|
| public void cancel(TimerTask task) Implements org. Doc from org. Cancel a task. | |
| getContextClassLoader | back to summary |
|---|---|
| private ClassLoader getContextClassLoader() Check if the current context class loader could cause a memory leak (DERBY-3745) if it is inherited by the timer thread, and return it if that is the case.
| |
| getWarnings | back to summary |
|---|---|
| public String getWarnings() Return any warnings generated during the initialization of this class, or null if none
| |
| schedule | back to summary |
|---|---|
| public void schedule(TimerTask task, long delay) Implements org. Doc from org. Schedule a task. | |
| setContextClassLoader | back to summary |
|---|---|
| private void setContextClassLoader(final ClassLoader cl) | |
| stop | back to summary |
|---|---|
| public void stop() Implements org. Cancels the singleton Timer instance. Implements the ModuleControl interface.
| |