|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.dgc.Lease
public final class Lease
A lease object is used to request and grant leases for the remote objects. It contains the lease duration and the unique VM indentifier.
Constructor Summary | |
---|---|
Lease(VMID id,
long duration)
Create the new lease with the given id and duration |
Method Summary | |
---|---|
long |
getValue()
Get the lease duration |
VMID |
getVMID()
Get the lease id. |
String |
toString()
Get the string representation of this lease |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Lease(VMID id, long duration)
id
- the lease idduration
- the lease durationMethod Detail |
---|
public VMID getVMID()
public long getValue()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |