public interface LockRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
long |
getLease()
lease is the ID of the lease that will be attached to ownership of the
lock.
|
com.google.protobuf.ByteString |
getName()
name is the identifier for the distributed shared lock to be acquired.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofcom.google.protobuf.ByteString getName()
name is the identifier for the distributed shared lock to be acquired.
bytes name = 1;long getLease()
lease is the ID of the lease that will be attached to ownership of the lock. If the lease expires or is revoked and currently holds the lock, the lock is automatically released. Calls to Lock with the same lease will be treated as a single acquistion; locking twice with the same lease is a no-op.
int64 lease = 2;Copyright © 2021. All rights reserved.