public class LeaseTimeToLiveResponse extends AbstractResponse<LeaseTimeToLiveResponse>
Response.Header| Constructor and Description |
|---|
LeaseTimeToLiveResponse(LeaseTimeToLiveResponse response) |
| Modifier and Type | Method and Description |
|---|---|
long |
getGrantedTTL()
GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
|
long |
getID()
ID is the lease ID from the keep alive request.
|
List<ByteSequence> |
getKeys()
Keys is the list of keys attached to this lease.
|
long |
getTTl()
TTL is the remaining TTL in seconds for the lease;
the lease will expire in under TTL+1 seconds.
|
getHeader, getResponse, getResponseHeader, toStringpublic LeaseTimeToLiveResponse(LeaseTimeToLiveResponse response)
public long getID()
public long getTTl()
public long getGrantedTTL()
public List<ByteSequence> getKeys()
Copyright © 2020. All rights reserved.