java.lang.Object
net.i2p.router.transport.GetBidsJob

class GetBidsJobextends Object
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 Details

  • Method Details

    • getBids

      static void getBids(RouterContext context, TransportManager tmgr, OutNetMessage msg)
      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 lookups
      tmgr - the transport manager asked to collect the bids from every available transport
      msg - the outbound message to bid on, dispatched on the lowest acceptable bid
    • fail

      static void fail(RouterContext context, OutNetMessage msg)
      Fail a message and trigger failure callbacks.
      Parameters:
      context - the router context, whose job queue receives the failure callbacks
      msg - the outbound message being dropped; it is unregistered from the message registry
    • _x

      private static final String _x(String s)
      Mark a string for extraction by xgettext and translation. Use this only in static initializers. It does not translate!
      Parameters:
      s - the string literal to mark for extraction
      Returns:
      s unchanged, so xgettext still sees the literal in the source