Search in sources :

Example 1 with UnlockResponse

use of io.etcd.jetcd.lock.UnlockResponse in project jetcd by coreos.

the class LockImpl method unlock.

@Override
public CompletableFuture<UnlockResponse> unlock(ByteSequence lockKey) {
    checkNotNull(lockKey);
    UnlockRequest request = UnlockRequest.newBuilder().setKey(Util.prefixNamespace(lockKey, namespace)).build();
    return execute(() -> stub.unlock(request), UnlockResponse::new, Errors::isRetryable);
}
Also used : Errors(io.etcd.jetcd.support.Errors) UnlockResponse(io.etcd.jetcd.lock.UnlockResponse) UnlockRequest(io.etcd.jetcd.api.lock.UnlockRequest)

Aggregations

UnlockRequest (io.etcd.jetcd.api.lock.UnlockRequest)1 UnlockResponse (io.etcd.jetcd.lock.UnlockResponse)1 Errors (io.etcd.jetcd.support.Errors)1