|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - public interface LeaseManager<T>
This class is responsible for creating/renewing and evicting a lease for a particular instance.
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.
| Method Summary | |
|---|---|
boolean |
cancel(java.lang.String appName,
java.lang.String id,
boolean isReplication)
Cancel the Lease associated w/ the passed in appName
and id |
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)
Renew the Lease associated w/ the passed in appName
and id |
| Method Detail |
|---|
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)
Lease associated w/ the passed in appName
and id
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)
Lease associated w/ the passed in appName
and id
id - - unique id within appNameisReplication - - whether this is a replicated entry from another ds node
void evict()
Ts with expired Lease(s).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||