- All Known Implementing Classes:
BuildHandler.TunnelBuildMessageHandlerJobBuilder, BuildHandler.TunnelBuildReplyMessageHandlerJobBuilder, FloodfillDatabaseLookupMessageHandler, FloodfillDatabaseStoreMessageHandler, GarlicMessageHandler
public interface HandlerJobBuilder
Builds jobs to handle a particular message type. Implementations are registered with the InNetMessagePool for various I2NP message types, allowing immediate queueing of a handler job rather than waiting for a polling job to come pick it up.
Method Summary
All MethodsModifier and TypeMethodDescriptioncreateJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Create a new job to handle the received message.
Method Details
createJob
Create a new job to handle the received message.- 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)