Package org.jboss.jms.server.endpoint

Examples of org.jboss.jms.server.endpoint.DefaultCancel


      //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


     
      for (Iterator i = deliveryInfos.iterator(); i.hasNext(); )
      {
         DeliveryInfo ack = (DeliveryInfo)i.next();           
        
         DefaultCancel cancel = new DefaultCancel(ack.getMessageProxy().getDeliveryId(),
                                                  ack.getMessageProxy().getDeliveryCount(),
                                                  false, false);
        
         cancels.add(cancel);
     
View Full Code Here

        
         boolean expired = is.readBoolean();
        
         boolean reachedMax = is.readBoolean();
        
         DefaultCancel cancel = new DefaultCancel(deliveryId, deliveryCount, expired, reachedMax);
        
         cancels.add(cancel);
      }
   }
View Full Code Here

            else
            {
               log.trace(proxy.getMessage() + " has reached maximum delivery number, cancelling to server");
            }
         }
         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);
            }
                 
            sessionDelegate.cancelDeliveries(cancels);
View Full Code Here

     
      boolean expired = is.readBoolean();
     
      boolean reachedMax = is.readBoolean();
     
      cancel = new DefaultCancel(deliveryId, deliveryCount, expired, reachedMax);     
   }
View Full Code Here

     
      public void testSessionCancelDeliveriesRequest() throws Exception
      {
         List cancels = new ArrayList();
        
         cancels.add(new DefaultCancel(12323, 12, false, false));
        
         RequestSupport req =
            new SessionCancelDeliveriesRequest(23, (byte)77, cancels);
                
         testPacket(req, PacketSupport.REQ_SESSION_CANCELDELIVERIES);                          
View Full Code Here

         testPacket(req, PacketSupport.REQ_SESSION_CANCELDELIVERIES);                          
      }  
     
      public void testSessionCancelDeliveryRequest() throws Exception
      {
         Cancel cancel = (new DefaultCancel(12323, 12, false, false));
        
         RequestSupport req =
            new SessionCancelDeliveryRequest(23, (byte)77, cancel);
                
         testPacket(req, PacketSupport.REQ_SESSION_CANCELDELIVERY);                          
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.endpoint.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.