Leasepublic final class Lease extends Object implements SerializableA lease contains a unique VM identifier and a lease duration. A
Lease object is used to request and grant leases to remote object
references. |
Fields Summary |
---|
private VMID | vmid | private long | value | private static final long | serialVersionUIDindicate compatibility with JDK 1.1.x version of class |
Constructors Summary |
---|
public Lease(VMID id, long duration)Constructs a lease with a specific VMID and lease duration. The
vmid may be null.
vmid = id;
value = duration;
|
Methods Summary |
---|
public java.rmi.dgc.VMID | getVMID()Returns the client VMID associated with the lease.
return vmid;
| public long | getValue()Returns the lease duration.
return value;
|
|