站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java Remote Method Invocation: 9 - Garbage Collector Interfaces - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

CONTENTS | PREV | NEXT Java Remote Method Invocation


9.2 The Lease Class

A lease contains a unique virtual machine identifier and a lease duration. A Lease object is used to request and grant leases to remote object references.

package java.rmi.dgc;

public final class Lease implements java.io.Serializable {

	public Lease(VMID id, long duration);

	public VMID getVMID();

	public long getValue();
}


The Lease constructor creates a lease with a specific VMID and lease duration. The VMID may be null.

The getVMID method returns the client VMID associated with the lease.

The getValue method returns the lease duration.



CONTENTS | PREV | NEXT
Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.