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>
  • Constructor Details

    • LeaseGrantResponse

      public LeaseGrantResponse(io.etcd.jetcd.api.LeaseGrantResponse response)
  • Method Details

    • getID

      public long getID()
      Returns the lease ID for the granted lease.
      Returns:
      the id.
    • getTTL

      public long getTTL()
      Returns the server chosen lease time-to-live in seconds.
      Returns:
      the ttl.