java.lang.Object
net.i2p.client.streaming.impl.Packet
net.i2p.client.streaming.impl.ConnectionHandler.PoisonPacket
Enclosing class:
ConnectionHandler

private static class ConnectionHandler.PoisonPacketextends Packet
Simple end-of-queue marker. The standard class limits the delay to POISON_MAX_DELAY_REQUEST so an evil user can't use this to shut us down.
  • Field Details

    • POISON_MAX_DELAY_REQUEST

      public static final int POISON_MAX_DELAY_REQUEST
      Delay request that stops a sender thread.
      See Also:
  • Constructor Details

    • PoisonPacket

      public PoisonPacket()
      Builds the packet that stops a sender thread.
  • Method Details

    • getOptionalDelay

      public int getOptionalDelay()
      Description copied from class: Packet
      How many milliseconds the sender of this packet wants the recipient to wait before sending any more data (only valid if the flag for it is set).
      Overrides:
      getOptionalDelay in class Packet
      Returns:
      How long the sender wants the recipient to wait before sending any more data in ms.
    • toString

      public String toString()
      Description copied from class: Packet
      String representation of this packet.
      Overrides:
      toString in class Packet