java.lang.Object
net.i2p.sam.SAMHandlerPool.ConnContext
Enclosing class:
SAMHandlerPool

private static class SAMHandlerPool.ConnContextextends Object
Per-connection context tracked by the pool.
  • Field Details

    • handler

      final SAMv3Handler handler
      The handler serving this connection.
    • buf

      final StringBuilder buf
      Buffer accumulating a partial command line.
    • gotFirstLine

      boolean gotFirstLine
      True once the first command line arrived.
    • lastDataTime

      long lastDataTime
      When data last arrived from the client.
    • lastPingTime

      long lastPingTime
      When a ping was last sent to the client.
    • created

      long created
      When the connection opened.
  • Constructor Details

    • ConnContext

      ConnContext(SAMv3Handler handler)
      Builds the state for one client connection.
      Parameters:
      handler - the handler serving the connection