java.lang.Object
net.i2p.router.transport.GetBidsJob
Retrieves transport bids for outbound message delivery. Retrieve a set of bids for a particular outbound message, and if any are found that meet the message's requirements, register the message as in process and pass it on to the transport for processing.
Constructor Summary
ConstructorsMethod Summary
Private MethodsModifier and TypeMethodDescriptionprivate static final StringMark a string for extraction by xgettext and translation.(package private) static voidfail(RouterContext context, OutNetMessage msg) Fail a message and trigger failure callbacks.(package private) static voidgetBids(RouterContext context, TransportManager tmgr, OutNetMessage msg) Transport bids for a message and send it if a suitable bid is found.
Constructor Details
GetBidsJob
GetBidsJob()Constructor. Bid collection is driven entirely by the staticgetBids(RouterContext, TransportManager, OutNetMessage)from the context, transport manager and message it is handed, so an instance carries no state.
Method Details
getBids
Transport bids for a message and send it if a suitable bid is found.- Parameters:
context- the router context, used for stats, banlist and clock lookupstmgr- the transport manager asked to collect the bids from every available transportmsg- the outbound message to bid on, dispatched on the lowest acceptable bid
fail
Fail a message and trigger failure callbacks.- Parameters:
context- the router context, whose job queue receives the failure callbacksmsg- the outbound message being dropped; it is unregistered from the message registry
_x