net.i2p.router.tunnel.pool
Class HandleTunnelCreateMessageJob.Builder

java.lang.Object
  extended by net.i2p.router.tunnel.pool.HandleTunnelCreateMessageJob.Builder
All Implemented Interfaces:
HandlerJobBuilder
Enclosing class:
HandleTunnelCreateMessageJob

static class HandleTunnelCreateMessageJob.Builder
extends java.lang.Object
implements HandlerJobBuilder

job builder to redirect all tunnelCreateMessages through this job type


Constructor Summary
HandleTunnelCreateMessageJob.Builder(RouterContext ctx)
           
 
Method Summary
 Job createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash)
          Create a new job to handle the received message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleTunnelCreateMessageJob.Builder

public HandleTunnelCreateMessageJob.Builder(RouterContext ctx)
Method Detail

createJob

public Job createJob(I2NPMessage receivedMessage,
                     RouterIdentity from,
                     Hash fromHash)
Description copied from interface: HandlerJobBuilder
Create a new job to handle the received message.

Specified by:
createJob in interface HandlerJobBuilder
Parameters:
receivedMessage - I2NP message received
from - router that sent the message (if available)
fromHash - hash of the routerIdentity of the router that sent the message (if available)
Returns:
a job or null if no particular job is appropriate (in which case, the message should go into the inbound message pool)