<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.rmi.dgc.Lease
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.dgc.html">This Package</a>  <a href="Package-java.rmi.dgc.html">Previous</a>  <a href="java.rmi.dgc.VMID.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.dgc.Lease
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.rmi.dgc.Lease
</pre>
<hr>
<dl>
  <dt> public final class <b>Lease</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
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.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Lease(java.rmi.dgc.VMID, long)"><b>Lease</b></a>(VMID, long)
  <dd>  Constructs a lease with a specific VMID and lease duration.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getValue()"><b>getValue</b></a>()
  <dd>  Returns the lease duration.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getVMID()"><b>getVMID</b></a>()
  <dd>  Returns the client VMID associated with the lease.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Lease"></a>
<a name="Lease(java.rmi.dgc.VMID, long)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Lease</b>
<pre>
 public Lease(<a href="java.rmi.dgc.VMID.html#_top_">VMID</a> id,
              long duration)
</pre>
<dl>
  <dd> Constructs a lease with a specific VMID and lease duration. The
 vmid may be null.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getVMID()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getVMID"><b>getVMID</b></a>
<pre>
 public <a href="java.rmi.dgc.VMID.html#_top_">VMID</a> getVMID()
</pre>
<dl>
  <dd> Returns the client VMID associated with the lease.
<p>
</dl>
<a name="getValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getValue"><b>getValue</b></a>
<pre>
 public long getValue()
</pre>
<dl>
  <dd> Returns the lease duration.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.dgc.html">This Package</a>  <a href="Package-java.rmi.dgc.html">Previous</a>  <a href="java.rmi.dgc.VMID.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
