Package com.sun.jini.landlord
Class Landlord.RenewResults
java.lang.Object
com.sun.jini.landlord.Landlord.RenewResults
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- Landlord
Simple class that holds return values of the
Landlord.renewAll
method.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRenewResults(long[] granted) Create aRenewResultsobject setting the fieldgrantedto the passed value, anddeniedtonull.RenewResults(long[] granted, Exception[] denied) Create aRenewResultsobject setting the fieldgrantedanddeniedfields to the passed values. -
Method Summary
-
Field Details
-
granted
public long[] grantedFor each cookie passed torenewAll,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 indenied.- See Also:
-
denied
Theith -1 ingrantedwas denied because ofdenied[i]. If nothing was denied, this field isnull.
-
-
Constructor Details
-
RenewResults
public RenewResults(long[] granted) Create aRenewResultsobject setting the fieldgrantedto the passed value, anddeniedtonull.- Parameters:
granted- The value for the fieldgranted
-
RenewResults
Create aRenewResultsobject setting the fieldgrantedanddeniedfields to the passed values.- Parameters:
granted- the value for the fieldgranteddenied- the value for the fielddenied
-