1.3.2 Lifetime Management

This protocol specifies a lease-based model for lifetime management of Marshaled Server Objects (MSO) and the Singleton SAO.

A Lease Object is associated with each Server Object. Each Lease Object has an initial Time-To-Live (TTL) for the Server Object. For every Remote Method invocation on the Server Object, the TTL is extended. If no calls are made to the Server Object for the duration of the TTL, the Server Object is considered for removal from the Server Object Table.

A client can explicitly control the Server Object's lifetime through Remote Method invocations on the Server Object's Lease Object. The client gets a Server Object Reference to the Lease Object for a Server Object by calling the Server Object's GetLifetimeService Remote Method. The client can then invoke the Renew Remote Method on the Lease Object to extend the TTL by a desired amount.