java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.pool.TestJob.OnTestTimeout
- All Implemented Interfaces:
Job
- Enclosing class:
TestJob
Times out one test message.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OutNetMessageThe outbound message awaiting its reply.private final longWhen the test was sent.private final TestJob.RoundTokenThe round being timed out.Constructor Summary
ConstructorsConstructorDescriptionOnTestTimeout(long now, TestJob.RoundToken token) Handle a test timeout, reporting failure.Method Summary
All MethodsMethods 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
_started
private final long _startedWhen the test was sent._token
The round being timed out._sentMessage
The outbound message awaiting its reply.
Constructor Details
OnTestTimeout
Handle a test timeout, reporting failure.- Parameters:
now- the time the round was dispatchedtoken- the round this callback was created for
Method Details
getName
Job name for the test-timeout event.- Returns:
- the name this job is listed under in the job queue
setSentMessage
Store the outbound message sent to the gateway for cleanup.- Parameters:
m- the build or test message awaiting a reply
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.