Package io.etcd.jetcd.lease
Class LeaseKeepAliveResponse
java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.LeaseKeepAliveResponse>
io.etcd.jetcd.lease.LeaseKeepAliveResponse
- All Implemented Interfaces:
Response
public class LeaseKeepAliveResponse
extends AbstractResponse<io.etcd.jetcd.api.LeaseKeepAliveResponse>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
Constructor Details
-
LeaseKeepAliveResponse
public LeaseKeepAliveResponse(io.etcd.jetcd.api.LeaseKeepAliveResponse response)
-
-
Method Details
-
getID
public long getID()Returns the lease ID from the keep alive request.- Returns:
- the id.
-
getTTL
public long getTTL()Returns the new time-to-live for the lease.- Returns:
- the ttl.
-