src/main/java/org/jboss/util/TimerQueue.java
public void schedule(TimerTask t, long delay) 
   {
      if (t == null) throw new IllegalArgumentException("Can't schedule a null TimerTask");
      if (delay < 0) delay = 0;
      t.setNextExecutionTime(System.currentTimeMillis() + delay);
      putJob(t);
   }
public void schedule(TimerTask t, long delay) 
   {
      if (t == null) throw new IllegalArgumentException("Can't schedule a null TimerTask");
      if (delay < 0) delay = 0;
      t.setNextExecutionTime(System.currentTimeMillis() + delay);
      putJob(t);
   }
public void schedule ( TimerTask t , long delay ) { if ( t == null ) throw new IllegalArgumentException ( "Can't schedule a null TimerTask" ) ; if ( delay < 0 ) delay = 0 ; t . setNextExecutionTime ( System . currentTimeMillis ( ) + delay ) ; putJob ( t ) ; }
Schedule the given TimerTask to be executed after <code>delay</code>
milliseconds.
@param t
@param delay
Schedule the given TimerTask to be executed after <code > delay< / code > milliseconds .