| Constructor and Description |
|---|
LeaseImpl(Frame leaseFrame) |
LeaseImpl(int allowedRequests,
int ttl) |
LeaseImpl(int allowedRequests,
int ttl,
ByteBuffer metadata) |
| Modifier and Type | Method and Description |
|---|---|
long |
expiry()
Absolute time since epoch at which this lease will expire.
|
int |
getAllowedRequests()
Number of requests allowed by this lease.
|
ByteBuffer |
getMetadata()
Metadata for the lease.
|
int |
getTtl()
Number of seconds that this lease is valid from the time it is received.
|
String |
toString() |
public LeaseImpl(int allowedRequests,
int ttl)
public LeaseImpl(int allowedRequests,
int ttl,
ByteBuffer metadata)
public LeaseImpl(Frame leaseFrame)
public int getAllowedRequests()
LeasegetAllowedRequests in interface Leasepublic int getTtl()
Leasepublic long expiry()
Leasepublic ByteBuffer getMetadata()
LeasegetMetadata in interface Lease