Examples of LocalQueue


Examples of net.timewalker.ffmq3.local.destination.LocalQueue

    private LocalQueue loadOrAutoCreateQueue( String queueName ) throws JMSException
    {
        QueueDefinition queueDef = destinationDefinitionProvider.getQueueDefinition(queueName);
        if (queueDef != null)
        {
            LocalQueue queue = new LocalQueue(this,queueDef);
            deployQueue(queue);
            return queue;
        }
       
        // Queue auto-creation
View Full Code Here

Examples of net.timewalker.ffmq3.local.destination.LocalQueue

    Destination destination = message.getJMSDestination();
   
    if (destination instanceof Queue)
    {
      Queue queueRef = (Queue)destination;
      LocalQueue queue = engine.getLocalQueue(queueRef.getQueueName());
      if (queue.put(message))
        if (committables != null)
          committables.add(queue);
    }
    else
    if (destination instanceof Topic)
View Full Code Here

Examples of net.timewalker.ffmq3.local.destination.LocalQueue

    Destination destination = message.getJMSDestination();
   
    if (destination instanceof Queue)
    {
      Queue queueRef = (Queue)destination;
      LocalQueue queue = engine.getLocalQueue(queueRef.getQueueName());
      if (queue.putLocked(message, locks))
        committables.add(queue);
    }
    else
      throw new InvalidDestinationException("Unsupported destination : "+destination);
    }
View Full Code Here

Examples of net.timewalker.ffmq3.local.destination.LocalQueue

        consumedCount += items.length;
       
        List updatedQueues = computeUpdatedQueues(items);
            for (int i = 0; i < updatedQueues.size(); i++)
            {
                LocalQueue localQueue = (LocalQueue)updatedQueues.get(i);
                if (localQueue.remove(this,items))
                  committables.add(localQueue);
            }
      }
     
      // Commit destinations
View Full Code Here

Examples of net.timewalker.ffmq3.local.destination.LocalQueue

      }
     
      List updatedQueues = computeUpdatedQueues(items);
        for (int i = 0; i < updatedQueues.size(); i++)
      {
        LocalQueue localQueue = (LocalQueue)updatedQueues.get(i);
        if (localQueue.redeliver(this,items))
          committableDestinations.add(localQueue);
      }
       
        // Commit destinations
        commitChanges(committableDestinations);
View Full Code Here

Examples of net.timewalker.ffmq3.local.destination.LocalQueue

    private List computeUpdatedQueues( TransactionItem[] items )
    {
        List updatedQueues = new ArrayList(Math.max(items.length,16));
        for (int i = 0 ; i < items.length ; i++)
        {
            LocalQueue localQueue = items[i].getDestination();
            if (!updatedQueues.contains(localQueue))
                updatedQueues.add(localQueue);
        }
        return updatedQueues;
    }
View Full Code Here

Examples of net.timewalker.ffmq3.local.destination.LocalQueue

    public QueueBrowser createBrowser(IntegerID browserId,Queue queueRef, String messageSelector) throws JMSException
    {
      synchronized (externalAccessLock)
    {
          checkNotClosed();
          LocalQueue localQueue = engine.getLocalQueue(queueRef.getQueueName());
 
          // Check temporary destinations scope (JMS Spec 4.4.3 p2)
          checkTemporaryDestinationScope(localQueue);
         
          LocalQueueBrowser browser = new LocalQueueBrowser(this,localQueue,messageSelector,browserId);
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.