use of io.etcd.jetcd.support.Errors 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);
}
Aggregations