Search in sources :

Example 1 with ConditionKey

use of com.hazelcast.concurrent.lock.ConditionKey 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;
}
Also used : LockStoreImpl(com.hazelcast.concurrent.lock.LockStoreImpl) ConditionKey(com.hazelcast.concurrent.lock.ConditionKey)

Aggregations

ConditionKey (com.hazelcast.concurrent.lock.ConditionKey)1 LockStoreImpl (com.hazelcast.concurrent.lock.LockStoreImpl)1