net.sf.retrotranslator.runtime.java.util
Class Timer_
java.lang.Object
net.sf.retrotranslator.runtime.java.util.Timer_
public class Timer_
- extends java.lang.Object
- Author:
- Taras Puchko
Field Summary |
private static AtomicInteger |
counter
|
private ScheduledThreadPoolExecutor |
executor
|
private java.lang.Object |
finalizer
|
Constructor Summary |
Timer_()
|
Timer_(boolean isDaemon)
|
Timer_(java.lang.String name)
|
Timer_(java.lang.String name,
boolean isDaemon)
|
Method Summary |
void |
cancel()
|
private static long |
checkDelay(java.util.Date date)
|
private static void |
checkDelay(long delay)
|
private static void |
checkPeriod(long period)
|
int |
purge()
|
void |
schedule(TimerTask_ task,
java.util.Date time)
|
void |
schedule(TimerTask_ task,
java.util.Date firstTime,
long period)
|
void |
schedule(TimerTask_ task,
long delay)
|
void |
schedule(TimerTask_ task,
long delay,
long period)
|
void |
scheduleAtFixedRate(TimerTask_ task,
java.util.Date firstTime,
long period)
|
void |
scheduleAtFixedRate(TimerTask_ task,
long delay,
long period)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
counter
private static AtomicInteger counter
executor
private final ScheduledThreadPoolExecutor executor
finalizer
private final java.lang.Object finalizer
Timer_
public Timer_()
Timer_
public Timer_(boolean isDaemon)
Timer_
public Timer_(java.lang.String name)
Timer_
public Timer_(java.lang.String name,
boolean isDaemon)
cancel
public void cancel()
purge
public int purge()
schedule
public void schedule(TimerTask_ task,
java.util.Date time)
schedule
public void schedule(TimerTask_ task,
java.util.Date firstTime,
long period)
scheduleAtFixedRate
public void scheduleAtFixedRate(TimerTask_ task,
java.util.Date firstTime,
long period)
schedule
public void schedule(TimerTask_ task,
long delay)
schedule
public void schedule(TimerTask_ task,
long delay,
long period)
scheduleAtFixedRate
public void scheduleAtFixedRate(TimerTask_ task,
long delay,
long period)
checkDelay
private static long checkDelay(java.util.Date date)
checkDelay
private static void checkDelay(long delay)
checkPeriod
private static void checkPeriod(long period)