Package io.etcd.jetcd.lease
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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header
-
-
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 longgetGrantedTTL()Returns the initial granted time in seconds upon lease creation/renewal.longgetID()Returns the lease ID from the keep alive request.java.util.List<ByteSequence>getKeys()Returns the list of keys attached to this lease.longgetTTl()Returns the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.-
Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
-
-
-
Method Detail
-
getID
public long getID()
Returns the lease ID from the keep alive request.
-
getTTl
public long getTTl()
Returns the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
-
getGrantedTTL
public long getGrantedTTL()
Returns the initial granted time in seconds upon lease creation/renewal.
-
getKeys
public java.util.List<ByteSequence> getKeys()
Returns the list of keys attached to this lease.
-
-