use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class BeforeAwaitOperation method run.
@Override
public void run() throws Exception {
LockStoreImpl lockStore = getLockStore();
lockStore.addAwait(key, conditionId, getCallerUuid(), threadId);
lockStore.unlock(key, getCallerUuid(), threadId, getReferenceCallId());
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class GetLockCountOperation method run.
@Override
public void run() throws Exception {
LockStoreImpl lockStore = getLockStore();
response = lockStore.getLockCount(key);
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class AwaitBackupOperation method run.
@Override
public void run() throws Exception {
LockStoreImpl lockStore = getLockStore();
lockStore.lock(key, originalCaller, threadId, getReferenceCallId(), leaseTime);
ConditionKey conditionKey = new ConditionKey(namespace.getObjectName(), key, conditionId, originalCaller, threadId);
lockStore.removeSignalKey(conditionKey);
lockStore.removeAwait(key, conditionId, originalCaller, threadId);
response = true;
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class AwaitOperation method runExpired.
void runExpired() {
LockStoreImpl lockStore = getLockStore();
boolean locked = lockStore.lock(key, getCallerUuid(), threadId, getReferenceCallId(), leaseTime);
assert locked : "Expired await operation should have acquired the lock!";
sendResponse(false);
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class BaseSignalOperation method run.
@Override
public void run() throws Exception {
response = true;
LockStoreImpl lockStore = getLockStore();
int signalCount = all ? Integer.MAX_VALUE : 1;
lockStore.signal(key, conditionId, signalCount, namespace.getObjectName());
}
Aggregations