T - public interface LeaseManager<T>
Leases determine what instances receive traffic. When there is no renewal
request from the client, the lease gets expired and the instances are evicted
out of InstanceRegistry. This is key to instances receiving traffic
or not.
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(java.lang.String appName,
java.lang.String id,
boolean isReplication)
|
void |
evict()
Evict
Ts with expired Lease(s). |
void |
register(T r,
int leaseDuration,
boolean isReplication)
Assign a new
Lease to the passed in T. |
boolean |
renew(java.lang.String appName,
java.lang.String id,
boolean isReplication)
|
void register(T r, int leaseDuration, boolean isReplication)
Lease to the passed in T.r - - T to registerleaseDuration - isReplication - - whether this is a replicated entry from another eureka node.boolean cancel(java.lang.String appName,
java.lang.String id,
boolean isReplication)
appName - - unique id of the application.id - - unique id within appName.isReplication - - whether this is a replicated entry from another eureka node.boolean renew(java.lang.String appName,
java.lang.String id,
boolean isReplication)
id - - unique id within appNameisReplication - - whether this is a replicated entry from another ds nodevoid evict()
Ts with expired Lease(s).