Class LeaseTimeToLiveResponse

java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.LeaseTimeToLiveResponse>
io.etcd.jetcd.lease.LeaseTimeToLiveResponse
All Implemented Interfaces:
Response

public class LeaseTimeToLiveResponse extends AbstractResponse<io.etcd.jetcd.api.LeaseTimeToLiveResponse>
  • Constructor Details

    • LeaseTimeToLiveResponse

      public LeaseTimeToLiveResponse(io.etcd.jetcd.api.LeaseTimeToLiveResponse response)
  • Method Details

    • getID

      public long getID()
      Returns the lease ID from the keep alive request.
      Returns:
      the lease id.
    • getTTL

      public long getTTL()
      Returns the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
      Returns:
      the ttl.
    • getGrantedTTL

      public long getGrantedTTL()
      Returns the initial granted time in seconds upon lease creation/renewal.
      Returns:
      the granted ttl.
    • getKeys

      public List<ByteSequence> getKeys()
      Returns the list of keys attached to this lease.
      Returns:
      the keys.