use of com.hazelcast.concurrent.lock.operations.SignalOperation in project hazelcast by hazelcast.
the class ConditionSignalMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
final Data key = serializationService.toData(parameters.lockName);
final InternalLockNamespace namespace = new InternalLockNamespace(parameters.lockName);
return new SignalOperation(namespace, key, parameters.threadId, parameters.name, false);
}
use of com.hazelcast.concurrent.lock.operations.SignalOperation in project hazelcast by hazelcast.
the class ConditionSignalAllMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
final Data key = serializationService.toData(parameters.lockName);
final InternalLockNamespace namespace = new InternalLockNamespace(parameters.lockName);
return new SignalOperation(namespace, key, parameters.threadId, parameters.name, true);
}
use of com.hazelcast.concurrent.lock.operations.SignalOperation in project hazelcast by hazelcast.
the class ConditionImpl method signal.
private void signal(boolean all) {
long threadId = ThreadUtil.getThreadId();
Data key = lockProxy.getKeyData();
SignalOperation op = new SignalOperation(namespace, key, threadId, conditionId, all);
InternalCompletableFuture f = invoke(op);
f.join();
}
Aggregations