java.lang.Object
net.i2p.sam.SAMHandlerPool.ConnContext
- Enclosing class:
SAMHandlerPool
Per-connection context tracked by the pool.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final StringBuilderBuffer accumulating a partial command line.(package private) longWhen the connection opened.(package private) booleanTrue once the first command line arrived.(package private) final SAMv3HandlerThe handler serving this connection.(package private) longWhen data last arrived from the client.(package private) longWhen a ping was last sent to the client.Constructor Summary
ConstructorsMethod Summary
Field Details
handler
The handler serving this connection.buf
Buffer accumulating a partial command line.gotFirstLine
boolean gotFirstLineTrue once the first command line arrived.lastDataTime
long lastDataTimeWhen data last arrived from the client.lastPingTime
long lastPingTimeWhen a ping was last sent to the client.created
long createdWhen the connection opened.
Constructor Details
ConnContext
ConnContext(SAMv3Handler handler) Builds the state for one client connection.- Parameters:
handler- the handler serving the connection