APIdia Launch Partner
Top Description Fields Constructors Methods
java.rmi.dgc

public final Class Lease

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.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.

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

indicate compatibility with JDK 1.1.x version of class

private long
private VMID

Constructor Summary

AccessConstructor and Description
public
Lease(VMID
VMID associated with this lease
id
,
long
lease duration
duration
)

Constructs a lease with a specific VMID and lease duration.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

lease duration
getValue
()

Returns the lease duration.

public VMID

Returns:

client VMID
getVMID
()

Returns the client VMID associated with the lease.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

indicate compatibility with JDK 1.1.x version of class

valueback to summary
private long value
See Also
getValue
vmidback to summary
private VMID vmid
See Also
getVMID

Constructor Detail

Leaseback to summary
public Lease(VMID id, long duration)

Constructs a lease with a specific VMID and lease duration. The vmid may be null.

Parameters
id:VMID

VMID associated with this lease

duration:long

lease duration

Method Detail

getValueback to summary
public long getValue()

Returns the lease duration.

Returns:long

lease duration

getVMIDback to summary
public VMID getVMID()

Returns the client VMID associated with the lease.

Returns:VMID

client VMID