CONTENTS | PREV | NEXT | Java Remote Method Invocation |
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.