com.sun.grizzly.http
Class KeepAliveThreadAttachment
java.lang.Object
com.sun.grizzly.util.SelectionKeyAttachment
com.sun.grizzly.util.SelectionKeyActionAttachment
com.sun.grizzly.util.ThreadAttachment
com.sun.grizzly.http.KeepAliveThreadAttachment
- All Implemented Interfaces:
- AttributeHolder
public class KeepAliveThreadAttachment
- extends ThreadAttachment
Add keep alive counting mechanism to the ThreadAttachement
.
- Author:
- Jeanfrancois Arcand
Methods inherited from class com.sun.grizzly.util.ThreadAttachment |
activeThread, associate, deassociate, getActiveThreadTimeout, getAttribute, getAttributes, getByteBuffer, getInputBB, getMode, getOutputBB, getSSLEngine, getThreadId, postProcess, process, release, removeAttribute, reset, setActiveThreadTimeout, setAttribute, setAttributes, setByteBuffer, setInputBB, setMode, setOutputBB, setSSLEngine, setThreadId, toString |
KeepAliveThreadAttachment
public KeepAliveThreadAttachment()
setKeepAliveStats
public void setKeepAliveStats(KeepAliveStats keepAliveStats)
- Set the
KeepAliveStats
instance used to collect request statistic.
- Parameters:
k
- the KeepAliveStats
instance used to collect request statistic.
increaseKeepAliveCount
public int increaseKeepAliveCount()
- Increase the keep=alibe keepAliveCount by one.
resetKeepAliveCount
public void resetKeepAliveCount()
- Reset the keep alive value to 0.
Copyright © 2009 SUN Microsystems. All Rights Reserved.