Class Landlord.RenewResults

java.lang.Object
com.sun.jini.landlord.Landlord.RenewResults
All Implemented Interfaces:
Serializable
Enclosing interface:
Landlord

public static class Landlord.RenewResults extends Object implements Serializable
Simple class that holds return values of the Landlord.renewAll method.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The ith -1 in granted was denied because of denied[i].
    long[]
    For each cookie passed to renewAll, granted[i] is the granted lease time, or -1 if the renewal for that lease generated an exception.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenewResults(long[] granted)
    Create a RenewResults object setting the field granted to the passed value, and denied to null.
    RenewResults(long[] granted, Exception[] denied)
    Create a RenewResults object setting the field granted and denied fields to the passed values.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • granted

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

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

    • RenewResults

      public 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
    • RenewResults

      public RenewResults(long[] granted, 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