use of com.hazelcast.concurrent.semaphore.SemaphoreContainer in project hazelcast by hazelcast.
the class AvailableOperation method run.
@Override
public void run() throws Exception {
SemaphoreContainer semaphoreContainer = getSemaphoreContainer();
response = semaphoreContainer.getAvailable();
}
use of com.hazelcast.concurrent.semaphore.SemaphoreContainer in project hazelcast by hazelcast.
the class DrainBackupOperation method run.
@Override
public void run() throws Exception {
SemaphoreContainer semaphoreContainer = getSemaphoreContainer();
semaphoreContainer.drain(firstCaller);
response = true;
}
use of com.hazelcast.concurrent.semaphore.SemaphoreContainer in project hazelcast by hazelcast.
the class DrainOperation method run.
@Override
public void run() throws Exception {
SemaphoreContainer semaphoreContainer = getSemaphoreContainer();
response = semaphoreContainer.drain(getCallerUuid());
}
use of com.hazelcast.concurrent.semaphore.SemaphoreContainer in project hazelcast by hazelcast.
the class InitOperation method run.
@Override
public void run() throws Exception {
SemaphoreContainer semaphoreContainer = getSemaphoreContainer();
response = semaphoreContainer.init(permitCount);
}
use of com.hazelcast.concurrent.semaphore.SemaphoreContainer in project hazelcast by hazelcast.
the class ReduceBackupOperation method run.
@Override
public void run() throws Exception {
SemaphoreContainer semaphoreContainer = getSemaphoreContainer();
semaphoreContainer.reduce(permitCount);
response = true;
}
Aggregations