16 #ifndef HAZELCAST_ISEMAPHORE
17 #define HAZELCAST_ISEMAPHORE
19 #include "hazelcast/client/proxy/ProxyImpl.h"
20 #include "hazelcast/client/exception/IException.h"
57 class HAZELCAST_API
ISemaphore :
public proxy::ProxyImpl {
67 bool init(
int permits);
127 void acquire(
int permits);
138 int availablePermits();
156 void reducePermits(
int reduction);
181 void release(
int permits);
209 bool tryAcquire(
int permits);
252 bool tryAcquire(
long timeoutInMillis);
293 bool tryAcquire(
int permits,
long timeoutInMillis);
297 ISemaphore(
const std::string &instanceName, spi::ClientContext *context);
ISemaphore is a backed-up distributed alternative to the java.util.concurrent.Semaphore.
Definition: ISemaphore.h:57
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:412