public static class Landlord.RenewResults extends Object implements Serializable
Landlord.renewAll
method.
The API of this class has changed, in a non backward compatible manner
for security reasons.Constructor and Description |
---|
RenewResults(AtomicSerial.GetArg arg) |
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. |
Modifier and Type | Method and Description |
---|---|
Exception |
getDenied(int i)
For each cookie passed to
renewAll ,
getGranted(i) is the granted lease time, or -1 if the
renewal for that lease generated an exception. |
long |
getGranted(int i)
For each cookie passed to
renewAll ,
getGranted(i) is the granted lease time, or -1 if the
renewal for that lease generated an exception. |
boolean |
noneDenied() |
public RenewResults(long[] granted)
RenewResults
object setting the field
granted
to the passed value, and denied
to null
.granted
- The value for the field granted
public RenewResults(long[] granted, Exception[] denied)
RenewResults
object setting the field
granted
and denied
fields to the
passed values.granted
- the value for the field granted
denied
- the value for the field denied
public RenewResults(AtomicSerial.GetArg arg) throws IOException, CloneNotSupportedException
public long getGranted(int i)
renewAll
,
getGranted(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
.public Exception getDenied(int i)
renewAll
,
getGranted(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 getDenied(i)
at index i, corresponding to the cookies array.i
- the array element location corresponding to the cookie passed
to to renewAll
public boolean noneDenied()
Copyright © 2016–2018. All rights reserved.