Package io.etcd.jetcd.lock
Class LockResponse
java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.lock.LockResponse>
io.etcd.jetcd.lock.LockResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header -
Constructor Summary
ConstructorsConstructorDescriptionLockResponse(io.etcd.jetcd.api.lock.LockResponse response, ByteSequence namespace) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns the key that will exist on etcd for the duration that the Lock caller owns the lock.Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
Constructor Details
-
LockResponse
-
-
Method Details
-
getKey
Returns the key that will exist on etcd for the duration that the Lock caller owns the lock. Users should not modify this key or the lock may exhibit undefined behavior.- Returns:
- the key.
-