Search in sources :

Example 16 with SemaphoreContainer

use of com.hazelcast.concurrent.semaphore.SemaphoreContainer in project hazelcast by hazelcast.

the class AcquireOperation method run.

@Override
public void run() throws Exception {
    SemaphoreContainer semaphoreContainer = getSemaphoreContainer();
    response = semaphoreContainer.acquire(getCallerUuid(), permitCount);
}
Also used : SemaphoreContainer(com.hazelcast.concurrent.semaphore.SemaphoreContainer)

Aggregations

SemaphoreContainer (com.hazelcast.concurrent.semaphore.SemaphoreContainer)16 SemaphoreService (com.hazelcast.concurrent.semaphore.SemaphoreService)3 ILogger (com.hazelcast.logging.ILogger)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1