net.i2p.router.tunnel.pool
Class HandleTunnelCreateMessageJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.pool.HandleTunnelCreateMessageJob
- All Implemented Interfaces:
- Job
public class HandleTunnelCreateMessageJob
- extends JobImpl
Receive a request to join a tunnel, and if we aren't overloaded (per the
throttle), join it (updating the tunnelDispatcher), then send back the
agreement. Even if we are overloaded, send back a reply stating how
overloaded we are.
Method Summary |
java.lang.String |
getName()
Descriptive name of the task |
void |
runJob()
Actually perform the task. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MAX_DURATION_SECONDS
public static final int MAX_DURATION_SECONDS
- don't accept requests to join for 15 minutes or more
- See Also:
- Constant Field Values
HandleTunnelCreateMessageJob
public HandleTunnelCreateMessageJob(RouterContext ctx,
TunnelCreateMessage msg)
getName
public java.lang.String getName()
- Description copied from interface:
Job
- Descriptive name of the task
runJob
public void runJob()
- Description copied from interface:
Job
- Actually perform the task. This call blocks until the Job is complete.