Class LeaseTimeToLiveResponse

  • All Implemented Interfaces:
    Response

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

      Constructors 
      Constructor Description
      LeaseTimeToLiveResponse​(io.etcd.jetcd.api.LeaseTimeToLiveResponse response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getGrantedTTL()
      Returns the initial granted time in seconds upon lease creation/renewal.
      long getID()
      Returns the lease ID from the keep alive request.
      java.util.List<ByteSequence> getKeys()
      Returns the list of keys attached to this lease.
      long getTTl()
      Returns the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LeaseTimeToLiveResponse

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

      • 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 java.util.List<ByteSequence> getKeys()
        Returns the list of keys attached to this lease.
        Returns:
        the keys.