use of com.hazelcast.concurrent.semaphore.operations.ReduceOperation in project hazelcast by hazelcast.
the class SemaphoreProxy method reducePermits.
@Override
public void reducePermits(int reduction) {
checkNotNegative(reduction, "reduction can't be negative");
Operation operation = new ReduceOperation(name, reduction).setPartitionId(partitionId);
InternalCompletableFuture<Object> future = invokeOnPartition(operation);
future.join();
}
Aggregations