src/main/java/org/jboss/util/TimerTask.java
/**
    * Cancels the next execution of this TimerTask (if any). <br>
    * If the TimerTask is executing it will prevent the next execution (if any).
    * @return true if one or more scheduled execution will not take place,
    * false otherwise.
    */
Cancels the next execution of this TimerTask (if any). 
If the TimerTask is executing it will prevent the next execution (if any).
@return true if one or more scheduled execution will not take place,
false otherwise.
Cancels the next execution of this TimerTask ( if any ) . If the TimerTask is executing it will prevent the next execution ( if any ) . @return true if one or more scheduled execution will not take place false otherwise .
public boolean cancel() 
   {
      synchronized (getLock()) 
      {
         boolean ret = (m_state == SCHEDULED);
         m_state = CANCELLED;
         return ret;
      }
   }
public boolean cancel ( ) { synchronized ( getLock ( ) ) { boolean ret = ( m_state == SCHEDULED ) ; m_state = CANCELLED ; return ret ; } }
Cancels the next execution of this TimerTask (if any).
Cancels the next execution of this TimerTask ( if any ) .