java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.pool.TestJob.OnTestReply
- Enclosing class:
TestJob
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OutNetMessageThe outbound message awaiting its reply.private longWhen the reply arrived, zero until it does.private final TestJob.RoundTokenThe round this reply belongs to.Constructor Summary
ConstructorsConstructorDescriptionOnTestReply(TestJob.RoundToken token) Handle the test reply and report the result.Method Summary
All MethodsModifier and TypeMethodDescriptiongetName()Store the outbound message sent to the gateway for cleanup.voidrunJob()Complete the test, reporting success or failure.voidsetMessage(I2NPMessage message) Record the arrival time of the reply message.voidRemembers the message so its reply can release it.Methods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Field Details
_successTime
private long _successTimeWhen the reply arrived, zero until it does._sentMessage
The outbound message awaiting its reply._token
The round this reply belongs to.
Constructor Details
OnTestReply
Handle the test reply and report the result.- Parameters:
token- the round this callback was created for
Method Details
getName
setSentMessage
Remembers the message so its reply can release it.- Parameters:
m- the message awaiting a reply
runJob
setMessage
Record the arrival time of the reply message.- Specified by:
setMessagein interfaceReplyJob- Parameters:
message- the received I2NP message