| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long | |
| pack-priv final ByteBuf | |
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static Lease | |
| public static Lease | |
| public static Lease | |
| public long | Returns: Absolute time since epoch at which this lease will expire.Absolute time since epoch at which this lease will expire. |
| public ByteBuf | |
| public int | Returns: The number of requests allowed by this lease.Number of requests allowed by this lease. |
| public int | |
| public String | |
| public static Lease | |
| public static Lease |
| expirationTime | back to summary |
|---|---|
| pack-priv final long expirationTime | |
| metadata | back to summary |
|---|---|
| pack-priv final ByteBuf metadata | |
| numberOfRequests | back to summary |
|---|---|
| pack-priv final int numberOfRequests | |
| timeToLiveMillis | back to summary |
|---|---|
| pack-priv final int timeToLiveMillis | |
| Lease | back to summary |
|---|---|
| pack-priv Lease(Duration timeToLive, int numberOfRequests, ByteBuf metadata) | |
| create | back to summary |
|---|---|
| public static Lease create(Duration timeToLive, int numberOfRequests, ByteBuf metadata) | |
| create | back to summary |
|---|---|
| public static Lease create(Duration timeToLive, int numberOfRequests) | |
| empty | back to summary |
|---|---|
| public static Lease empty() | |
| expirationTime | back to summary |
|---|---|
| public long expirationTime() Absolute time since epoch at which this lease will expire.
| |
| metadata | back to summary |
|---|---|
| public ByteBuf metadata() Metadata for the lease. | |
| numberOfRequests | back to summary |
|---|---|
| public int numberOfRequests() Number of requests allowed by this lease.
| |
| timeToLiveInMillis | back to summary |
|---|---|
| public int timeToLiveInMillis() Time to live for the given lease
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unbounded | back to summary |
|---|---|
| public static Lease unbounded() | |
| unbounded | back to summary |
|---|---|
| public static Lease unbounded(ByteBuf metadata) | |