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
public class LockResponse extends AbstractResponse<io.etcd.jetcd.api.lock.LockResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header
-
-
Constructor Summary
Constructors Constructor Description LockResponse(io.etcd.jetcd.api.lock.LockResponse response, ByteSequence namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteSequencegetKey()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 Detail
-
LockResponse
public LockResponse(io.etcd.jetcd.api.lock.LockResponse response, ByteSequence namespace)
-
-
Method Detail
-
getKey
public ByteSequence 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.
-
-