Class FloodfillDatabaseLookupMessageHandler
- java.lang.Object
-
- net.i2p.router.networkdb.kademlia.FloodfillDatabaseLookupMessageHandler
-
- All Implemented Interfaces:
HandlerJobBuilder
public class FloodfillDatabaseLookupMessageHandler extends Object implements HandlerJobBuilder
Build a HandleDatabaseLookupMessageJob whenever a DatabaseLookupMessage arrives
-
-
Constructor Summary
Constructors Constructor Description FloodfillDatabaseLookupMessageHandler(RouterContext context, FloodfillNetworkDatabaseFacade facade)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job
createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash)
Create a new job to handle the received message.
-
-
-
Constructor Detail
-
FloodfillDatabaseLookupMessageHandler
public FloodfillDatabaseLookupMessageHandler(RouterContext context, FloodfillNetworkDatabaseFacade facade)
-
-
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 interfaceHandlerJobBuilder
- Parameters:
receivedMessage
- I2NP message receivedfrom
- 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)
-
-