zinger.nibbles
Class Timer

java.lang.Object
  |
  +--zinger.nibbles.Timer
All Implemented Interfaces:
java.lang.Runnable

public class Timer
extends java.lang.Object
implements java.lang.Runnable


Inner Class Summary
static interface Timer.Listener
           
protected  class Timer.Task
           
 
Field Summary
protected  long delay
           
private  boolean go
           
protected  Timer.Listener listener
           
protected  ObjectRecycler TASK_THREAD_RECYCLER
           
 
Constructor Summary
Timer(long delay, Timer.Listener listener, int maxNThreads)
           
 
Method Summary
 void run()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

TASK_THREAD_RECYCLER

protected final ObjectRecycler TASK_THREAD_RECYCLER

delay

protected final long delay

listener

protected final Timer.Listener listener

go

private boolean go
Constructor Detail

Timer

public Timer(long delay,
             Timer.Listener listener,
             int maxNThreads)
Method Detail

run

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

stop

public void stop()