Search in sources :

Example 1 with GetCountOperation

use of com.hazelcast.concurrent.countdownlatch.operations.GetCountOperation in project hazelcast by hazelcast.

the class CountDownLatchProxy method getCount.

@Override
public int getCount() {
    Operation op = new GetCountOperation(name).setPartitionId(partitionId);
    InternalCompletableFuture<Integer> f = invokeOnPartition(op);
    return f.join();
}
Also used : GetCountOperation(com.hazelcast.concurrent.countdownlatch.operations.GetCountOperation) CountDownOperation(com.hazelcast.concurrent.countdownlatch.operations.CountDownOperation) Operation(com.hazelcast.spi.Operation) GetCountOperation(com.hazelcast.concurrent.countdownlatch.operations.GetCountOperation) AwaitOperation(com.hazelcast.concurrent.countdownlatch.operations.AwaitOperation) SetCountOperation(com.hazelcast.concurrent.countdownlatch.operations.SetCountOperation)

Aggregations

AwaitOperation (com.hazelcast.concurrent.countdownlatch.operations.AwaitOperation)1 CountDownOperation (com.hazelcast.concurrent.countdownlatch.operations.CountDownOperation)1 GetCountOperation (com.hazelcast.concurrent.countdownlatch.operations.GetCountOperation)1 SetCountOperation (com.hazelcast.concurrent.countdownlatch.operations.SetCountOperation)1 Operation (com.hazelcast.spi.Operation)1