FileDocCategorySizeDatePackage
Lease.javaAPI DocJava SE 5 API1359Fri Aug 26 14:57:12 BST 2005java.rmi.dgc

Lease

public final class Lease extends Object implements 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.

Fields Summary
private VMID
vmid
private long
value
private static final long
serialVersionUID
indicate 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.

param
id VMID associated with this lease
param
duration lease duration


                                   
        
    
	vmid = id;
	value = duration;
    
Methods Summary
public java.rmi.dgc.VMIDgetVMID()
Returns the client VMID associated with the lease.

return
client VMID

	return vmid;
    
public longgetValue()
Returns the lease duration.

return
lease duration

	return value;