java.lang.Object
net.i2p.client.streaming.impl.ConnectionManager.PingRequest
Enclosing class:
ConnectionManager

private static class ConnectionManager.PingRequestextends Object
Holds the state for a pending ping request, including optional payload and notification callback.
  • Field Details

    • _ponged

      private boolean _ponged
      Whether the pong has arrived.
    • _payload

      private ByteArray _payload
      The payload echoed back by the pong.
    • _notifier

      private final ConnectionManager.PingNotifier _notifier
      Notified when the pong arrives.
  • Constructor Details

  • Method Details

    • pong

      public void pong(ByteArray payload)
      Record the pong and notify the caller.
      Parameters:
      payload - may be null
    • pongReceived

      public boolean pongReceived()
      Whether a pong has been received.
      Returns:
      true when the pong arrived
    • getPayload

      public ByteArray getPayload()
      Payload received in the pong.
      Returns:
      null if no payload or no pong received