Class LockResponse

  • All Implemented Interfaces:
    Response

    public class LockResponse
    extends AbstractResponse<io.etcd.jetcd.api.lock.LockResponse>
    • 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.