Package com.hazelcast.concurrent.countdownlatch

Examples of com.hazelcast.concurrent.countdownlatch.CountDownLatchInfo


        super.readInternal(in);
        int len = in.readInt();
        if (len > 0) {
            data = new ArrayList<CountDownLatchInfo>();
            for (int i = 0; i < len; i++) {
                CountDownLatchInfo latch = new CountDownLatchInfo();
                latch.readData(in);
                data.add(latch);
            }
        }
    }
View Full Code Here


    }

    @Override
    public Operation getBackupOperation() {
        CountDownLatchService service = getService();
        CountDownLatchInfo latch = service.getLatch(name);
        int count = latch != null ? latch.getCount() : 0;
        return new CountDownLatchBackupOperation(name, count);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.concurrent.countdownlatch.CountDownLatchInfo

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.