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 essentially unused, as InNetMessagePool short circuits tunnel messages,
and the garlics are handled in InboundMessageDistributor.
Unless we get a garlic message not down a tunnel?
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GarlicMessageHandler
public GarlicMessageHandler(RouterContext context)
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 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)