|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.appinfo.LeaseInfo.Builder
public static final class LeaseInfo.Builder
| Method Summary | |
|---|---|
LeaseInfo |
build()
Build the InstanceInfo |
static LeaseInfo.Builder |
newBuilder()
|
LeaseInfo.Builder |
setDurationInSecs(int d)
Sets the client specified setting for eviction (e.g. |
LeaseInfo.Builder |
setEvictionTimestamp(long ts)
Sets the de-registration timestamp |
LeaseInfo.Builder |
setRegistrationTimestamp(long ts)
Sets the registration timestamp |
LeaseInfo.Builder |
setRenewalIntervalInSecs(int i)
Sets the client specified setting for renew interval |
LeaseInfo.Builder |
setRenewalTimestamp(long ts)
Sets the last renewal timestamp of lease |
LeaseInfo.Builder |
setServiceUpTimestamp(long ts)
Sets the service UP timestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LeaseInfo.Builder newBuilder()
public LeaseInfo.Builder setRegistrationTimestamp(long ts)
ts - time when the lease was first registered.
LeaseInfo builder.public LeaseInfo.Builder setRenewalTimestamp(long ts)
ts - time when the lease was last renewed.
LeaseInfo builder.public LeaseInfo.Builder setEvictionTimestamp(long ts)
ts - time when the lease was removed.
LeaseInfo builder.public LeaseInfo.Builder setServiceUpTimestamp(long ts)
ts - time when the leased service marked as UP.
LeaseInfo builder.public LeaseInfo.Builder setDurationInSecs(int d)
d - time in seconds after which the lease would expire without
renewa.
LeaseInfo builder.public LeaseInfo.Builder setRenewalIntervalInSecs(int i)
i - the time interval with which the renewals will be renewed.
LeaseInfo builder.public LeaseInfo build()
InstanceInfo
LeaseInfo information built based on the supplied
information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||