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