Search in sources :

Example 1 with GetRemainingLeaseTimeOperation

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

the class LockProxySupport method getRemainingLeaseTime.

public long getRemainingLeaseTime(NodeEngine nodeEngine, Data key) {
    Operation operation = new GetRemainingLeaseTimeOperation(namespace, key);
    InternalCompletableFuture<Number> f = invoke(nodeEngine, operation, key);
    return f.join().longValue();
}
Also used : 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) 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