/** * Starts this request * @return <code>true</code> if the request has already been handled * <code>false</code> otherwise */ public boolean enqueue(){ if( request.getDelay() <= 0 ){ run(); return true; } else{ Timer timer = new Timer( request.getDelay(), this ); timer.setRepeats( false ); timer.start(); return false; } }
/** * Starts this request * @return <code>true</code> if the request has already been handled * <code>false</code> otherwise */ public boolean enqueue(){ if( request.getDelay() <= 0 ){ run(); return true; } else{ Timer timer = new Timer( request.getDelay(), this ); timer.setRepeats( false ); timer.start(); return false; } }