org.apache.accumulo.server.util.time
Class SimpleTimer

java.lang.Object
  extended by org.apache.accumulo.server.util.time.SimpleTimer

public class SimpleTimer
extends Object

Generic singleton timer: don't use it if you are going to do anything that will take very long. Please use it to reduce the number of threads dedicated to simple events.


Method Summary
static SimpleTimer getInstance()
           
 void schedule(TimerTask task, long delay)
           
 void schedule(TimerTask task, long delay, long period)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SimpleTimer getInstance()

schedule

public void schedule(TimerTask task,
                     long delay)

schedule

public void schedule(TimerTask task,
                     long delay,
                     long period)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.