use of com.hazelcast.concurrent.lock.operations.IsLockedOperation in project hazelcast by hazelcast.
the class LockProxySupport method isLockedByCurrentThread.
public boolean isLockedByCurrentThread(NodeEngine nodeEngine, Data key) {
IsLockedOperation operation = new IsLockedOperation(namespace, key, getThreadId());
InternalCompletableFuture<Boolean> f = invoke(nodeEngine, operation, key);
return f.join();
}
use of com.hazelcast.concurrent.lock.operations.IsLockedOperation in project hazelcast by hazelcast.
the class LockProxySupport method isLocked.
public boolean isLocked(NodeEngine nodeEngine, Data key) {
IsLockedOperation operation = new IsLockedOperation(namespace, key);
InternalCompletableFuture<Boolean> f = invoke(nodeEngine, operation, key);
return f.join();
}
Aggregations