Package net.i2p.router.client
Class LeaseRequestState
java.lang.Object
net.i2p.router.client.LeaseRequestState
Bundle up the data points necessary when asynchronously requesting a lease
from a client
-
Constructor Summary
ConstructorDescriptionLeaseRequestState
(Job onGranted, Job onFailed, long currentEarliestLeastDate, long expiration, LeaseSet requested) -
Method Summary
Modifier and TypeMethodDescriptionlong
The earliest lease expiration time in the current LS (NOT the requested one), or 0 if none.long
when the request for the lease set expirescreated lease set from client - FIXME always nullboolean
whether the request was successful in the time allottedwhat to do if the lease set create fails / times outwhat to do once the lease set is createdlease set that is being requestedvoid
setGranted
(LeaseSet ls) FIXME unused - why?void
setIsSuccessful
(boolean is) toString()
-
Constructor Details
-
LeaseRequestState
public LeaseRequestState(Job onGranted, Job onFailed, long currentEarliestLeastDate, long expiration, LeaseSet requested) - Parameters:
currentEarliestLeastDate
- absolute time, the earliest expiration in the current LS (NOT the requested one), or 0 if noneexpiration
- absolute time, when the request expires (not when the LS expires)requested
- LeaseSet with requested leases - this object must be updated to contain the signed version (as well as any changed/added/removed Leases) The LeaseSet contains Leases and destination only, it is unsigned.
-
-
Method Details
-
getGranted
created lease set from client - FIXME always null -
setGranted
FIXME unused - why? -
getRequested
lease set that is being requested -
getOnGranted
what to do once the lease set is created -
getOnFailed
what to do if the lease set create fails / times out -
getExpiration
public long getExpiration()when the request for the lease set expires -
getCurrentEarliestLeaseDate
public long getCurrentEarliestLeaseDate()The earliest lease expiration time in the current LS (NOT the requested one), or 0 if none.- Since:
- 0.9.39
-
getIsSuccessful
public boolean getIsSuccessful()whether the request was successful in the time allotted -
setIsSuccessful
public void setIsSuccessful(boolean is) -
toString
-