ASP.NET - Define LeaseTime, SponsorshipTime, RenewOnCallTime, LeaseManagePollTime.

Define LeaseTime, SponsorshipTime, RenewOnCallTime, LeaseManagePollTime.

Terms related to lifecycle of a remoting object.

The LeaseTime property protects the object so that the garbage collector does not destroy it as remoting objects are beyond the scope of the garbage collector. Every object created has a default leasetime for which it will be activated. Once the leasetime expires, the object is eligible again for garbage collector and is eventually destroyed. Default value is 5 minutes.

Even though the leasetime of an object has expired, there still may be clients who would still need the remoting object on the server. In such cases the leasemanager keeps a track of such clients and asks them if they need the object and are ready to extend or sponsor the object to extend its existence. This is done through SponsorshipTime property, which is then based on the sponsor.

The RenewOnCallTime property defines the duration for which a remoting object's lease is extended if a sponsor is found. The default value is 2 minutes.

The LeaseManager class has a property PollTime, which defines the frequency at which the LeaseManager polls the leases. Default is 10 seconds.
ASP.NET - How to specify remoting parameters using config files?
How to specify remoting parameters using config files - The remoting parameters can be specified through both programming and in config files....
ASP.NET - What is marshalling? Explain types of marshalling.
What is marshalling? Explain types of marshalling - Marshaling is a process of transforming or serializing data from one application domain....
ASP.NET - What is ObjRef object in remoting?
What is ObjRef object in remoting? - ObjRef is a searializable object returned by Marshal()..
Post your comment