use of com.hazelcast.concurrent.lock.operations.BeforeAwaitOperation in project hazelcast by hazelcast.
the class ConditionBeforeAwaitMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
final Data key = serializationService.toData(parameters.lockName);
final InternalLockNamespace namespace = new InternalLockNamespace(parameters.lockName);
return new BeforeAwaitOperation(namespace, key, parameters.threadId, parameters.name, parameters.referenceId);
}
use of com.hazelcast.concurrent.lock.operations.BeforeAwaitOperation in project hazelcast by hazelcast.
the class ConditionImpl method beforeAwait.
private void beforeAwait(long threadId) {
Data key = lockProxy.getKeyData();
BeforeAwaitOperation op = new BeforeAwaitOperation(namespace, key, threadId, conditionId);
InternalCompletableFuture f = invoke(op);
f.join();
}
Aggregations