use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class BeforeAwaitBackupOperation method run.
@Override
public void run() throws Exception {
LockStoreImpl lockStore = getLockStore();
lockStore.addAwait(key, conditionId, originalCaller, threadId);
lockStore.unlock(key, originalCaller, threadId, getReferenceCallId());
response = true;
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class GetRemainingLeaseTimeOperation method run.
@Override
public void run() throws Exception {
LockStoreImpl lockStore = getLockStore();
response = lockStore.getRemainingLeaseTime(key);
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class LockBackupOperation method run.
@Override
public void run() throws Exception {
LockStoreImpl lockStore = getLockStore();
response = lockStore.lock(key, originalCallerUuid, threadId, getReferenceCallId(), leaseTime);
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class LockReplicationOperation method writeInternal.
@Override
protected void writeInternal(final ObjectDataOutput out) throws IOException {
super.writeInternal(out);
int len = locks.size();
out.writeInt(len);
if (len > 0) {
for (LockStoreImpl ls : locks) {
ls.writeData(out);
}
}
}
use of com.hazelcast.concurrent.lock.LockStoreImpl in project hazelcast by hazelcast.
the class SignalOperation method beforeRun.
@Override
public void beforeRun() throws Exception {
LockStoreImpl lockStore = getLockStore();
boolean isLockOwner = lockStore.isLockedBy(key, getCallerUuid(), threadId);
ensureLockOwner(lockStore, isLockOwner);
}
Aggregations