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>
  • Constructor Details

    • LockResponse

      public LockResponse(io.etcd.jetcd.api.lock.LockResponse response, ByteSequence namespace)
  • Method Details

    • 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.
      Returns:
      the key.