Class DatabaseLookupMessageHandler

  extended by net.i2p.router.networkdb.DatabaseLookupMessageHandler
All Implemented Interfaces:

public class DatabaseLookupMessageHandler
extends java.lang.Object
implements HandlerJobBuilder

Build a HandleDatabaseLookupMessageJob whenever a DatabaseLookupMessage arrives Unused - see kademlia/ for replacement

Constructor Summary
DatabaseLookupMessageHandler(RouterContext context)
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


public DatabaseLookupMessageHandler(RouterContext context)
Method Detail


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
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)
a job or null if no particular job is appropriate (in which case, the message should go into the inbound message pool)