Package net.i2p.router.message
Class GarlicMessageHandler
java.lang.Object
net.i2p.router.message.GarlicMessageHandler
- All Implemented Interfaces:
HandlerJobBuilder
public class GarlicMessageHandler extends Object implements HandlerJobBuilder
HandlerJobBuilder to build jobs to handle GarlicMessages
This is the handler for garlic message not received down a tunnel, which is the
case for floodfills receiving netdb messages.
It is not the handler for garlic messages received down a tunnel,
as InNetMessagePool short circuits tunnel messages,
and those garlic messages are handled in InboundMessageDistributor.
-
Constructor Summary
Constructors Constructor Description GarlicMessageHandler(RouterContext context)
-
Method Summary
Modifier and Type Method Description Job
createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash)
Create a new job to handle the received message.
-
Constructor Details
-
Method Details
-
createJob
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)
-