Package org.jgroups.util

Examples of org.jgroups.util.LinkedListQueue


        return stop - start;
    }


    long measureLinkedListQueue() throws Exception {
        LinkedListQueue q=new LinkedListQueue();
        long start, stop;

        start=System.currentTimeMillis();
        for(int i=0; i < num_elements; i++) {
            if(i % 2 == 0)
                q.add(new Integer(i));
            else
                q.addAtHead(new Integer(i));
        }

        while(q.size() > 0)
            q.remove();

        stop=System.currentTimeMillis();
        return stop - start;
    }
View Full Code Here

TOP

Related Classes of org.jgroups.util.LinkedListQueue

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.