Package org.mortbay.util.ArrayIdQueue

Examples of org.mortbay.util.ArrayIdQueue.ArrayIdIterator


            if (ext != null)
            {
                Long acked=(Long) ext.get("ack");
                if (acked != null)
                {
                    ArrayIdIterator it=_unackedQueue.idIterator();
                    MessageImpl queuedMessage=null;
                    while (it.hasNext())
                    {
                        queuedMessage=(MessageImpl)it.next();
                        long messageBatchId=it.associatedId();
                        if (acked >= messageBatchId)
                        {
                            queuedMessage.decRef();
                            it.remove();
                        }
                    }
                }
            }
        
View Full Code Here

TOP

Related Classes of org.mortbay.util.ArrayIdQueue.ArrayIdIterator

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.