Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.DefaultCancel


            if (debug) { log.debug(proxy.getMessage() + " has reached maximum delivery number " + maxDeliveries +", cancelling to server"); }
         }
        
         if (shouldCancel)
         {          
           final Cancel cancel = new DefaultCancel(proxy.getDeliveryId(), proxy.getDeliveryCount(),
                                                   expired, reachedMaxDeliveries);          
           try
           {
              del.cancelDelivery(cancel);
           }
View Full Code Here


  
            for(Iterator i = buffer.iterator(); i.hasNext();)
            {
               MessageProxy mp = (MessageProxy)i.next();
              
               DefaultCancel cancel =
                  new DefaultCancel(mp.getDeliveryId(), mp.getDeliveryCount(), false, false);
              
               cancels.add(cancel);
            }
                 
            if (trace) { log.trace("Calling cancelDeliveries"); }
View Full Code Here

        //If the delivery was obtained via a connection consumer we need to cancel via that
        //otherwise we just use this session
       
        SessionDelegate sessionToUse = connectionConsumerSession != null ? connectionConsumerSession : sess;
       
        sessionToUse.cancelDelivery(new DefaultCancel(delivery.getDeliveryID(),
                                    delivery.getMessageProxy().getDeliveryCount(), false, false));     
     }
   }
View Full Code Here

      {
         DeliveryInfo ack = (DeliveryInfo)i.next();     
        
         if (ack.isShouldAck())
         {        
           DefaultCancel cancel = new DefaultCancel(ack.getMessageProxy().getDeliveryId(),
                                                    ack.getMessageProxy().getDeliveryCount(),
                                                    false, false);
          
           cancels.add(cancel);
         }
View Full Code Here

            if (debug) { log.debug(proxy.getMessage() + " has reached maximum delivery number " + maxDeliveries +", cancelling to server"); }
         }
        
         if (shouldCancel)
         {          
           final Cancel cancel = new DefaultCancel(proxy.getDeliveryId(), proxy.getDeliveryCount(),
                                                   expired, reachedMaxDeliveries);          
           try
           {
              del.cancelDelivery(cancel);
           }
View Full Code Here

  
            for(Iterator i = buffer.iterator(); i.hasNext();)
            {
               MessageProxy mp = (MessageProxy)i.next();
              
               DefaultCancel cancel =
                  new DefaultCancel(mp.getDeliveryId(), mp.getDeliveryCount(), false, false);
              
               cancels.add(cancel);
            }
                 
            if (trace) { log.trace("Calling cancelDeliveries"); }
View Full Code Here

        //If the delivery was obtained via a connection consumer we need to cancel via that
        //otherwise we just use this session
       
        SessionDelegate sessionToUse = connectionConsumerSession != null ? connectionConsumerSession : sess;
       
        sessionToUse.cancelDelivery(new DefaultCancel(delivery.getDeliveryID(),
                                    delivery.getMessageProxy().getDeliveryCount(), false, false));     
     }
   }
View Full Code Here

      {
         DeliveryInfo ack = (DeliveryInfo)i.next();     
        
         if (ack.isShouldAck())
         {        
           DefaultCancel cancel = new DefaultCancel(ack.getMessageProxy().getDeliveryId(),
                                                    ack.getMessageProxy().getDeliveryCount(),
                                                    false, false);
          
           cancels.add(cancel);
         }
View Full Code Here

            }
         }
        
         if (shouldCancel)
         {          
           final Cancel cancel = new DefaultCancel(proxy.getDeliveryId(), proxy.getDeliveryCount(),
                                                   expired, reachedMaxDeliveries);          
           try
           {
              del.cancelDelivery(cancel);
           }
View Full Code Here

  
            for(Iterator i = buffer.iterator(); i.hasNext();)
            {
               MessageProxy mp = (MessageProxy)i.next();
              
               DefaultCancel cancel =
                  new DefaultCancel(mp.getDeliveryId(), mp.getDeliveryCount(), false, false);
              
               cancels.add(cancel);
            }
                 
            if (trace) { log.trace("Calling cancelDeliveries"); }
View Full Code Here

TOP

Related Classes of org.jboss.jms.delegate.DefaultCancel

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.