Package commonj.timers

Examples of commonj.timers.Timer.cancel()


  public void destroy() {
    // Cancel all registered timers.
    for (Iterator it = this.timers.iterator(); it.hasNext();) {
      Timer timer = (Timer) it.next();
      try {
        timer.cancel();
      }
      catch (Throwable ex) {
        logger.warn("Could not cancel CommonJ Timer", ex);
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.