Package org.jboss.util.timeout

Examples of org.jboss.util.timeout.Timeout


         // Schedule the cancel to actually occur at the specified time. Need to synchronize to
         // prevent timeout being removed before it is added.
         synchronized (scheduledDeliveries)
         {
            Timeout timeout =
               MessagingTimeoutFactory.instance.getFactory().
                  schedule(ref.getScheduledDeliveryTime(), new DeliverRefTimeoutTarget(ref));

            scheduledDeliveries.add(timeout);
         }
View Full Code Here


         Iterator iter = clone.iterator();

         while (iter.hasNext())
         {
            Timeout timeout = (Timeout)iter.next();

            timeout.cancel();
         }

         scheduledDeliveries.clear();
      }
   }
View Full Code Here

         // Schedule the cancel to actually occur at the specified time. Need to synchronize to
         // prevent timeout being removed before it is added.
         synchronized (scheduledDeliveries)
         {
            Timeout timeout =
               MessagingTimeoutFactory.instance.getFactory().
                  schedule(ref.getScheduledDeliveryTime(), new DeliverRefTimeoutTarget(ref));

            scheduledDeliveries.add(timeout);
         }
View Full Code Here

         Iterator iter = clone.iterator();

         while (iter.hasNext())
         {
            Timeout timeout = (Timeout)iter.next();

            timeout.cancel();
           
            if (needRemove) {
               if (timeout instanceof TimeoutExt) {
                  TimeoutExt te = (TimeoutExt)timeout;
                  DeliverRefTimeoutTarget target = (DeliverRefTimeoutTarget)te.getTimeoutTarget();
View Full Code Here

         // Schedule the cancel to actually occur at the specified time. Need to synchronize to
         // prevent timeout being removed before it is added.
         synchronized (scheduledDeliveries)
         {
            Timeout timeout =
               MessagingTimeoutFactory.instance.getFactory().
                  schedule(ref.getScheduledDeliveryTime(), new DeliverRefTimeoutTarget(ref));

            scheduledDeliveries.add(timeout);
         }
View Full Code Here

         Iterator iter = clone.iterator();

         while (iter.hasNext())
         {
            Timeout timeout = (Timeout)iter.next();

            timeout.cancel();
           
            if (needRemove) {
               if (timeout instanceof TimeoutExt) {
                  TimeoutExt te = (TimeoutExt)timeout;
                  DeliverRefTimeoutTarget target = (DeliverRefTimeoutTarget)te.getTimeoutTarget();
View Full Code Here

         // Schedule the cancel to actually occur at the specified time. Need to synchronize to
         // prevent timeout being removed before it is added.
         synchronized (scheduledDeliveries)
         {
            Timeout timeout =
               MessagingTimeoutFactory.instance.getFactory().
                  schedule(ref.getScheduledDeliveryTime(), new DeliverRefTimeoutTarget(ref));

            scheduledDeliveries.add(timeout);
         }
View Full Code Here

/*     */
/* 416 */       Iterator iter = clone.iterator();
/*     */
/* 418 */       while (iter.hasNext())
/*     */       {
/* 420 */         Timeout timeout = (Timeout)iter.next();
/*     */
/* 422 */         timeout.cancel();
/*     */       }
/*     */
/* 425 */       this.scheduledDeliveries.clear();
/*     */     }
/*     */   }
View Full Code Here

/*     */     {
/* 667 */       if (this.trace) log.trace("Scheduling delivery for " + ref + " to occur at " + ref.getScheduledDeliveryTime());
/*     */
/* 671 */       synchronized (this.scheduledDeliveries)
/*     */       {
/* 673 */         Timeout timeout = MessagingTimeoutFactory.instance.getFactory().schedule(ref.getScheduledDeliveryTime(), new DeliverRefTimeoutTarget(ref));
/*     */
/* 677 */         this.scheduledDeliveries.add(timeout);
/*     */       }
/*     */
/* 680 */       return true;
View Full Code Here

        
         Iterator iter = clone.iterator();
        
         while (iter.hasNext())
         {
            Timeout timeout = (Timeout)iter.next();
           
            timeout.cancel();
         }
        
         scheduledDeliveries.clear();
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.util.timeout.Timeout

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.