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