Package mx4j.timer

Examples of mx4j.timer.TimerTask


   public Object getNotificationUserData(Integer id)
   {
      synchronized (this)
      {
         TimerTask t = getTask(id);
         return t == null ? null : t.getNotification().getUserData();
      }
   }
View Full Code Here


   public Date getDate(Integer id)
   {
      synchronized (this)
      {
         TimerTask t = getTask(id);
         return t == null ? null : new Date(t.getDate());
      }
   }
View Full Code Here

   public Long getPeriod(Integer id)
   {
      synchronized (this)
      {
         TimerTask t = getTask(id);
         return t == null ? null : new Long(t.getPeriod());
      }
   }
View Full Code Here

   public Long getNbOccurences(Integer id)
   {
      synchronized (this)
      {
         TimerTask t = getTask(id);
         return t == null ? null : new Long(t.getOccurrences());
      }
   }
View Full Code Here

   {
      Logger logger = getLogger();

      synchronized (this)
      {
         TimerTask t = (TimerTask)tasks.get(id);

         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Retrieving task with id " + id + ": " + t);

         if (t != null && t.isFinished())
         {
            if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Task with id " + id + " is expired, removing it");

            tasks.remove(id);
            t = null;
View Full Code Here

      synchronized (this)
      {
         if (i.hasNext())
         {
            Map.Entry entry = (Map.Entry)i.next();
            TimerTask t = (TimerTask)entry.getValue();
            if (t.isFinished())
            {
               if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Found an expired notification, removing it: " + t);
               i.remove();
               return getNextNonFinishedTaskEntry(i);
            }
View Full Code Here

TOP

Related Classes of mx4j.timer.TimerTask

Copyright © 2018 www.massapicom. 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.