Spec-Zone .ru
спецификации, руководства, описания, API
CONTENTS | PREV | NEXT Java Remote Method Invocation


9.2 The Lease Class

A lease contains a unique virtual machine identifier and a lease duration. A Lease object is used to request and grant leases to remote object references.

package java.rmi.dgc;

public final class Lease implements java.io.Serializable {
	public Lease(VMID id, long duration);
	public VMID getVMID();
	public long getValue();
}
The Lease constructor creates a lease with a specific VMID and lease duration. The VMID may be null.

The getVMID method returns the client VMID associated with the lease.

The getValue method returns the lease duration.



CONTENTS | PREV | NEXT
Copyright © 1997-1999 Sun Microsystems, Inc. All Rights Reserved.