| Constructor and Description |
|---|
LeaseImpl(ByteBuf leaseFrame) |
LeaseImpl(int allowedRequests,
int ttl) |
LeaseImpl(int allowedRequests,
int ttl,
ByteBuf 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.
|
ByteBuf |
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,
ByteBuf metadata)
public LeaseImpl(ByteBuf leaseFrame)
public int getAllowedRequests()
LeasegetAllowedRequests in interface Leasepublic int getTtl()
Leasepublic long expiry()
Leasepublic ByteBuf getMetadata()
LeasegetMetadata in interface Lease