Examples of SimpleDelivery


Examples of org.jboss.messaging.core.SimpleDelivery

         }
      }

      if (del == null && selectorRejected)
      {
         del = new SimpleDelivery(null, null, true, false);
      }

      return del;
   }
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

      {
         return super.handle(sender, ref, tx);
      }
      else
      {
         return new SimpleDelivery(this, ref, true, false);
      }
   }
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

         else
         {
            // Store internally
            refs.add(reference);
           
            return new SimpleDelivery(observer, reference);
         }
        
     
      }
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

         //log.trace(this + " got ref");

         //log.trace("cnt:" + totalCount);

         SimpleDelivery del = new SimpleDelivery(observer, reference);

         dels.add(del);

         count++;
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

         else
         {
            // Store internally
            refs.add(reference);
           
            return new SimpleDelivery(observer, reference);
         }
        
     
      }
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

            return null;
         }

         synchronized(lock)
         {
            return new SimpleDelivery(null, null, true, true);
         }
      }
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

         if (closed)
         {
            return null;
         }
        
         Delivery del = new SimpleDelivery(null, null, true, selectorMatches);
        
         if (selectorMatches)
         {
            gotRef = true;
         }
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

            return null;
         }
        
         assertEquals(refs[consumeCount + count].getMessage().getMessageID(), ref.getMessage().getMessageID());
        
         SimpleDelivery del = new SimpleDelivery(observer, ref);
        
         dels[count] = del;
        
         count++;
        
View Full Code Here

Examples of org.jboss.messaging.core.SimpleDelivery

         if (count == numToCancel)
         {
            return null;
         }
        
         SimpleDelivery del = new SimpleDelivery(observer, ref);
        
         toCancel[count] = del;                 
        
         count++;        
        
View Full Code Here

Examples of org.jboss.messaging.core.impl.SimpleDelivery

         Queue queue = binding.queue;

         if (trace) log.trace("Destination for message[ID=" + ref.getMessage().getMessageID() + "] is: " + queue);

         //Create a new delivery - note that it must have a delivery observer otherwise acknowledge will fail
         Delivery del = new SimpleDelivery(queue, ref, true, true);

         if (trace) log.trace("Acknowledging..");

         try
         {
           // The actual jmx queue may not have been deployed yet, so we need to the core queue if so,
            // or the acknowledge will have no effect

            boolean deactivate = false;

            if (!queue.isActive())
            {
              queue.activate();

              deactivate = true;
            }

            del.acknowledge(tx);

            if (deactivate)
            {
              queue.deactivate();
            }
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.