16 #ifndef HAZELCAST_ISEMAPHORE 17 #define HAZELCAST_ISEMAPHORE 22 #include "hazelcast/client/proxy/ProxyImpl.h" 23 #include "hazelcast/client/exception/IException.h" 57 class HAZELCAST_API
ISemaphore :
public proxy::ProxyImpl {
58 friend class impl::HazelcastClientInstanceImpl;
67 bool init(
int permits);
127 void acquire(
int permits);
138 int availablePermits();
156 void reducePermits(
int reduction);
166 void increasePermits(int32_t increase);
191 void release(
int permits);
219 bool tryAcquire(
int permits);
262 bool tryAcquire(
long timeoutInMillis);
303 bool tryAcquire(
int permits,
long timeoutInMillis);
307 ISemaphore(
const std::string &instanceName, spi::ClientContext *context);
309 void checkNegative(int32_t permits)
const;
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32
ISemaphore is a backed-up distributed alternative to the java.util.concurrent.Semaphore.
Definition: ISemaphore.h:57