public class LeaseInfo extends Object
Represents the lease information with Eureka.
Eureka decides to remove the instance out of its view depending on
the duration that is set in
EurekaInstanceConfig#getLeaseExpirationDurationInSeconds()
which is
held in this lease. The lease also tracks the last time it was renewed.
Modifier and Type | Class and Description |
---|---|
static class |
LeaseInfo.Builder
A builder class.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LEASE_DURATION
Default lease duration.
|
static int |
DEFAULT_LEASE_RENEWAL_INTERVAL
Default lease renewal interval.
|
Modifier and Type | Method and Description |
---|---|
int |
getDurationInSecs()
Returns client specified setting for eviction (e.g.
|
long |
getEvictionTimestamp()
Returns the de-registration timestamp.
|
long |
getRegistrationTimestamp()
Returns the registration timestamp.
|
int |
getRenewalIntervalInSecs()
Returns client specified setting for renew interval.
|
long |
getRenewalTimestamp()
Returns the last renewal timestamp of lease.
|
long |
getServiceUpTimestamp()
Returns the service UP timestamp.
|
public static final int DEFAULT_LEASE_RENEWAL_INTERVAL
public static final int DEFAULT_LEASE_DURATION
public long getRegistrationTimestamp()
public long getRenewalTimestamp()
public long getEvictionTimestamp()
public long getServiceUpTimestamp()
public int getRenewalIntervalInSecs()
public int getDurationInSecs()