Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.ActiveMQMessage.shallowCopy()


            this.accessThread = null;
            if (message != null) {
                boolean expired = message.isExpired();
                messageDelivered(message, true,expired);
                if (!expired){
                message = message.shallowCopy();
                }else {
                    message = (ActiveMQMessage) receiveNoWait(); //this will remove any other expired messages held in the queue
                }
            }
            return message;
View Full Code Here


            //iterate through an scrub delivered but expired messages
            while ((message = (ActiveMQMessage)messageQueue.dequeueNoWait())!= null){
                boolean expired = message.isExpired();
                messageDelivered(message,true,expired);
                if (!expired){
                    return message.shallowCopy();
                }
            }
        }
        catch (InterruptedException ioe) {
            throw new JMSException("Queue is interrupted: " + ioe.getMessage());
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.