net.sf.retrotranslator.runtime.java.util
Class TimerTask_.TimerCommand

java.lang.Object
  extended by net.sf.retrotranslator.runtime.java.util.TimerTask_.TimerCommand
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TimerTask_

 class TimerTask_.TimerCommand
extends java.lang.Object
implements java.lang.Runnable


Field Summary
private  boolean cancelled
           
private  long executionTime
           
private  ScheduledThreadPoolExecutor executor
           
private  ScheduledFuture future
           
private  boolean periodic
           
 
Constructor Summary
TimerTask_.TimerCommand()
           
 
Method Summary
(package private)  boolean cancel()
           
private  void check()
           
(package private)  long getExecutionTime()
           
private  void init(boolean periodic, ScheduledThreadPoolExecutor executor, ScheduledFuture future)
           
 void run()
           
(package private)  void runAtFixedRate(ScheduledThreadPoolExecutor executor, long delay, long period)
           
(package private)  void runOnce(ScheduledThreadPoolExecutor executor, long delay)
           
(package private)  void runWithFixedDelay(ScheduledThreadPoolExecutor executor, long delay, long period)
           
private  void saveExecutionTime()
           
private  void shutdownExecutor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

periodic

private boolean periodic

cancelled

private boolean cancelled

executionTime

private long executionTime

future

private ScheduledFuture future

executor

private ScheduledThreadPoolExecutor executor
Constructor Detail

TimerTask_.TimerCommand

TimerTask_.TimerCommand()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

saveExecutionTime

private void saveExecutionTime()

shutdownExecutor

private void shutdownExecutor()

getExecutionTime

long getExecutionTime()

cancel

boolean cancel()

runOnce

void runOnce(ScheduledThreadPoolExecutor executor,
             long delay)

runWithFixedDelay

void runWithFixedDelay(ScheduledThreadPoolExecutor executor,
                       long delay,
                       long period)

runAtFixedRate

void runAtFixedRate(ScheduledThreadPoolExecutor executor,
                    long delay,
                    long period)

check

private void check()

init

private void init(boolean periodic,
                  ScheduledThreadPoolExecutor executor,
                  ScheduledFuture future)