java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.TunnelDispatcher.LeaveTunnel
- All Implemented Interfaces:
Job
- Enclosing class:
TunnelDispatcher
Job removing hops from a tunnel.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentLinkedQueue<HopConfig> The hop configs to remove.Constructor Summary
ConstructorsMethod 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
_configs
The hop configs to remove.
Constructor Details
LeaveTunnel
Builds the leave tunnel job.- Parameters:
ctx- the router context
Method Details
add
clear
public void clear()Drops all queued hop configs.remove
getConfigs
Returns the queued hop configs.- Returns:
- the hops waiting to be removed
getName
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.