com.sun.jini.lease.landlord
Class Landlord.RenewResults

java.lang.Object
  |
  +--com.sun.jini.lease.landlord.Landlord.RenewResults

public static class Landlord.RenewResults
extends java.lang.Object
implements java.io.Serializable

Simple class that holds return values of the Landlord.renewAll method.

See Also:
Landlord.renewAll(java.lang.Object[], long[]), Serialized Form

Field Summary
 java.lang.Exception[] denied
          The ith -1 in granted was denied because of denied[i].
 long[] granted
          For each cookie passed to renewAll, granted[i] is the granted lease time, or -1 if the renewal for that least generated an exception.
 
Constructor Summary
Landlord.RenewResults(long[] granted)
          Create a RenewResults object setting the field granted to the passed value, and denied to null.
Landlord.RenewResults(long[] granted, java.lang.Exception[] denied)
          Create a RenewResults object setting the field granted and denied fields to the passed values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

granted

public long[] granted
For each cookie passed to renewAll, granted[i] is the granted lease time, or -1 if the renewal for that least generated an exception. If there was an exception, the exception is held in denied.
See Also:
denied

denied

public java.lang.Exception[] denied
The ith -1 in granted was denied because of denied[i]. If nothing was denied, this field is null.
Constructor Detail

Landlord.RenewResults

public Landlord.RenewResults(long[] granted)
Create a RenewResults object setting the field granted to the passed value, and denied to null.
Parameters:
granted - The value for the field granted

Landlord.RenewResults

public Landlord.RenewResults(long[] granted,
                             java.lang.Exception[] denied)
Create a RenewResults object setting the field granted and denied fields to the passed values.
Parameters:
granted - The value for the field granted
denied - The value for the field denied


Copyright © 1999 Sun Microsystems, Inc. All rights reserved