16 #ifndef HAZELCAST_ISEMAPHORE
17 #define HAZELCAST_ISEMAPHORE
19 #include "hazelcast/client/proxy/ProxyImpl.h"
20 #include "hazelcast/client/exception/IException.h"
56 class HAZELCAST_API
ISemaphore :
public proxy::ProxyImpl {
66 bool init(
int permits);
126 void acquire(
int permits);
137 int availablePermits();
155 void reducePermits(
int reduction);
180 void release(
int permits);
208 bool tryAcquire(
int permits);
251 bool tryAcquire(
long timeoutInMillis);
292 bool tryAcquire(
int permits,
long timeoutInMillis);
296 ISemaphore(
const std::string &instanceName, spi::ClientContext *context);
ISemaphore is a backed-up distributed alternative to the java.util.concurrent.Semaphore.
Definition: ISemaphore.h:56
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:459