ServiceRegistration
referenced by the given ProxyReg
object. The lease to be cancelled was granted by the lookup service whose proxy is also referenced by the given ProxyReg
object. This task is executed whenever that lookup service is discarded. Note that although this task is executed upon receipt of any type of lookup service discard event, there is one type of discard that this task is actually intended to address: the so-called "lost-interest" discard. A discard corresponding to a loss of interest is an indication that the discarded lookup service is still up and available, but the discovery manager employed by this join manager (not the join manager or the service itself) discards the lookup service because the service is no longer interested in being registered with that lookup service. This loss of interest is caused by a change in either the lookup service's member groups or the service's groups-to-discover. Such a change in groups would typically be made administratively, through either the lookup service's administrative interface or through the service's administrative interface (or both). When the lookup service is discarded because of a loss of interest, there is a time period in which the service is still registered with the lookup service, even though the service no longer wishes to be registered with that lookup service. To address this, the lease is cancelled so that the service is removed from the lookup service in a much more timely fashion than simply allowing the lease to expire. As stated above, this task is also executed upon receipt of the other types of discard event. But because those other discard types occur when the lookup service is no longer available, the lease cancellation that is attempted here has no significant effect.
@see DiscMgrListener#discarded
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|