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 -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the initial granted time in seconds upon lease creation/renewal.longgetID()Returns the lease ID from the keep alive request.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
-
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
Returns the list of keys attached to this lease.- Returns:
- the keys.
-