java.lang.Object
java.rmi.dgc.Lease
- All Implemented Interfaces:
Serializable
A lease contains a unique VM identifier and a lease duration. A
Lease object is used to request and grant leases to remote object
references.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Lease
Constructs a lease with a specific VMID and lease duration. The vmid may be null.- Parameters:
id
- VMID associated with this leaseduration
- lease duration
-
-
Method Details
-
getVMID
-
getValue
public long getValue()Returns the lease duration.- Returns:
- lease duration
-