Package io.etcd.jetcd.lease
Class LeaseGrantResponse
- java.lang.Object
-
- io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.LeaseGrantResponse>
-
- io.etcd.jetcd.lease.LeaseGrantResponse
-
- All Implemented Interfaces:
Response
public class LeaseGrantResponse extends AbstractResponse<io.etcd.jetcd.api.LeaseGrantResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header
-
-
Constructor Summary
Constructors Constructor Description LeaseGrantResponse(io.etcd.jetcd.api.LeaseGrantResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetID()Returns the lease ID for the granted lease.longgetTTL()Returns the server chosen lease time-to-live in seconds.-
Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
-