net.i2p.router.client
Class LeaseRequestState

java.lang.Object
  extended by net.i2p.router.client.LeaseRequestState

 class LeaseRequestState
extends Object

Bundle up the data points necessary when asynchronously requesting a lease from a client


Constructor Summary
LeaseRequestState(Job onGranted, Job onFailed, long expiration, LeaseSet requested)
           
 
Method Summary
 long getExpiration()
          when the request for the lease set expires
 LeaseSet getGranted()
          created lease set from client - FIXME always null
 boolean getIsSuccessful()
          whether the request was successful in the time allotted
 Job getOnFailed()
          what to do if the lease set create fails / times out
 Job getOnGranted()
          what to do once the lease set is created
 LeaseSet getRequested()
          lease set that is being requested
 void setGranted(LeaseSet ls)
          FIXME unused - why?
 void setIsSuccessful(boolean is)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeaseRequestState

public LeaseRequestState(Job onGranted,
                         Job onFailed,
                         long expiration,
                         LeaseSet requested)
Parameters:
expiration - absolute time
Method Detail

getGranted

public LeaseSet getGranted()
created lease set from client - FIXME always null


setGranted

public void setGranted(LeaseSet ls)
FIXME unused - why?


getRequested

public LeaseSet getRequested()
lease set that is being requested


getOnGranted

public Job getOnGranted()
what to do once the lease set is created


getOnFailed

public Job getOnFailed()
what to do if the lease set create fails / times out


getExpiration

public long getExpiration()
when the request for the lease set expires


getIsSuccessful

public boolean getIsSuccessful()
whether the request was successful in the time allotted


setIsSuccessful

public void setIsSuccessful(boolean is)

toString

public String toString()
Overrides:
toString in class Object