CONTENTS | PREV | NEXT | Java Remote Method Invocation |
Lease
Class
A lease contains a unique virtual machine identifier and a lease duration. ALease
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(); }TheLease
constructor creates a lease with a specific VMID and lease duration. The VMID may benull
.The
getVMID
method returns the client VMID associated with the lease.The
getValue
method returns the lease duration.
CONTENTS | PREV | NEXT
Copyright © 1997-1999 Sun Microsystems, Inc. All Rights Reserved.