Package org.exoplatform.services.scheduler

Examples of org.exoplatform.services.scheduler.QueueTasks.poll()


  
   public void execute(JobContext context) throws Exception
   {
      PortalContainer manager = PortalContainer.getInstance();
      QueueTasks qtasks = (QueueTasks)manager.getComponentInstanceOfType(QueueTasks.class);
      Task task = qtasks.poll();
      while (task != null)
      {
         try
         {
            task.execute();
View Full Code Here


         }
         catch (Exception ex)
         {
            LOG.error(ex.getLocalizedMessage(), ex);
         }
         task = qtasks.poll();
      }
   }
}
View Full Code Here

{
   public void execute(JobContext context) throws Exception
   {
      PortalContainer manager = PortalContainer.getInstance();
      QueueTasks qtasks = (QueueTasks)manager.getComponentInstanceOfType(QueueTasks.class);
      Task task = qtasks.poll();
      while (task != null)
      {
         try
         {
            task.execute();
View Full Code Here

         }
         catch (Exception ex)
         {
            ex.printStackTrace();
         }
         task = qtasks.poll();
      }
   }
}
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.