Package org.jgroups.util

Examples of org.jgroups.util.AckCollector.retainAll()


    }

    public void testRetainAll() {
        final AckCollector ac=new AckCollector(list);
        List<Address> members=Arrays.asList(one, two, three);
        ac.retainAll(members);
        System.out.println("ac=" + ac);
        assert ac.size() == 3;

        new Thread() {
            public void run() {
View Full Code Here


        System.out.println("ac = " + ac);

        new Thread() {
            public void run() {
                Util.sleep(1000);
                ac.retainAll(Arrays.asList(five));
                System.out.println("ac=" + ac);
            }
        }.start();

        boolean received_all=ac.waitForAllAcks(30000);
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.