public class Java5SingletonTimerFactory extends SingletonTimerFactory
SingletonTimerFactory
that takes advantage of the
new Timer.purge()
method in Java 5.Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicInteger |
cancelCount
The number of times
cancel(TimerTask) has been called. |
Constructor and Description |
---|
Java5SingletonTimerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.util.TimerTask task)
Cancel a task.
|
boot, getCancellationTimer, schedule, stop
private final java.util.concurrent.atomic.AtomicInteger cancelCount
cancel(TimerTask)
has been called.
Used for determining whether it's time to purge cancelled tasks from
the timer.public void cancel(java.util.TimerTask task)
SingletonTimerFactory
cancel
in interface TimerFactory
cancel
in class SingletonTimerFactory
task
- the task to cancelApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.