Search in sources :

Example 1 with GetLockCountOperation

use of com.hazelcast.concurrent.lock.operations.GetLockCountOperation in project hazelcast by hazelcast.

the class LockProxySupport method getLockCount.

public int getLockCount(NodeEngine nodeEngine, Data key) {
    Operation operation = new GetLockCountOperation(namespace, key);
    InternalCompletableFuture<Number> f = invoke(nodeEngine, operation, key);
    return f.join().intValue();
}
Also used : GetLockCountOperation(com.hazelcast.concurrent.lock.operations.GetLockCountOperation) UnlockOperation(com.hazelcast.concurrent.lock.operations.UnlockOperation) Operation(com.hazelcast.spi.Operation) LockOperation(com.hazelcast.concurrent.lock.operations.LockOperation) IsLockedOperation(com.hazelcast.concurrent.lock.operations.IsLockedOperation) GetLockCountOperation(com.hazelcast.concurrent.lock.operations.GetLockCountOperation) GetRemainingLeaseTimeOperation(com.hazelcast.concurrent.lock.operations.GetRemainingLeaseTimeOperation)

Aggregations

GetLockCountOperation (com.hazelcast.concurrent.lock.operations.GetLockCountOperation)1 GetRemainingLeaseTimeOperation (com.hazelcast.concurrent.lock.operations.GetRemainingLeaseTimeOperation)1 IsLockedOperation (com.hazelcast.concurrent.lock.operations.IsLockedOperation)1 LockOperation (com.hazelcast.concurrent.lock.operations.LockOperation)1 UnlockOperation (com.hazelcast.concurrent.lock.operations.UnlockOperation)1 Operation (com.hazelcast.spi.Operation)1