java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.client.ClientManager.DistributeLocal
All Implemented Interfaces:
Job
Enclosing class:
ClientManager

private static class ClientManager.DistributeLocalextends JobImpl
Job delivering a message to a local destination.
  • Field Details

    • _toDest

      private final Destination _toDest
      The destination the message goes to.
    • _to

      private final ClientConnectionRunner _to
      The runner delivering the message.
    • _from

      private final ClientConnectionRunner _from
      The runner the message came from, null from the network.
    • _fromDest

      private final Destination _fromDest
      The destination the message came from.
    • _payload

      private final Payload _payload
      The message payload.
    • _msgId

      private final MessageId _msgId
      The message id.
    • _messageNonce

      private final long _messageNonce
      The message nonce for replay checks.
  • Constructor Details

    • DistributeLocal

      public DistributeLocal(RouterContext ctx, Destination toDest, ClientConnectionRunner to, ClientConnectionRunner from, Destination fromDest, Payload payload, MessageId id, long messageNonce)
      Distribute a message from one client connection directly to another.
      Parameters:
      ctx - the router context
      toDest - the destination being sent to
      to - the client connection the message goes to
      from - the client connection the message came from
      fromDest - the destination the message came from
      payload - the message payload
      id - the router's ID for this message
      messageNonce - the client's ID for this message
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Job
      Descriptive name of the task.
      Returns:
      the descriptive name of the task
    • runJob

      public void runJob()
      Description copied from interface: Job
      Actually perform the task. This call blocks until the Job is complete.