|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.KeepAlive
public final class KeepAlive
Web container configuration for keep-alive HTTP connections.
| Field Summary | |
|---|---|
protected AbstractJmxMonitoringConfig<KeepAliveProbe> |
monitoringConfig
Keep alive probes |
| Constructor Summary | |
|---|---|
KeepAlive()
|
|
| Method Summary | |
|---|---|
protected JmxObject |
createJmxManagementObject()
|
int |
getIdleTimeoutInSeconds()
|
int |
getMaxRequestsCount()
|
JmxMonitoringConfig<KeepAliveProbe> |
getMonitoringConfig()
|
protected static void |
notifyProbesConnectionAccepted(KeepAlive keepAlive,
Connection connection)
Notify registered KeepAliveProbes about the "keep-alive connection accepted" event. |
protected static void |
notifyProbesHit(KeepAlive keepAlive,
Connection connection,
int requestNumber)
Notify registered KeepAliveProbes about the "keep-alive connection hit" event. |
protected static void |
notifyProbesRefused(KeepAlive keepAlive,
Connection connection)
Notify registered KeepAliveProbes about the "keep-alive connection refused" event. |
protected static void |
notifyProbesTimeout(KeepAlive keepAlive,
Connection connection)
Notify registered KeepAliveProbes about the "keep-alive connection timeout" event. |
void |
setIdleTimeoutInSeconds(int idleTimeoutInSeconds)
Configures idle connection timeout behavior. |
void |
setMaxRequestsCount(int maxRequestsCount)
Configures the max number of HTTP requests allowed to be processed on one keep-alive connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AbstractJmxMonitoringConfig<KeepAliveProbe> monitoringConfig
| Constructor Detail |
|---|
public KeepAlive()
| Method Detail |
|---|
public int getIdleTimeoutInSeconds()
public void setIdleTimeoutInSeconds(int idleTimeoutInSeconds)
Configures idle connection timeout behavior.
idleTimeoutInSeconds - the number in seconds a connection may
be idle before being timed out. Values less than zero are considered as FOREVER.public int getMaxRequestsCount()
public void setMaxRequestsCount(int maxRequestsCount)
Configures the max number of HTTP requests allowed to be processed on one keep-alive connection.
maxRequestsCount - the max number of HTTP requests allowed to be
processed on one keep-alive connection. Values less than zero are considered as UNLIMITED.public JmxMonitoringConfig<KeepAliveProbe> getMonitoringConfig()
getMonitoringConfig in interface JmxMonitoringAware<KeepAliveProbe>getMonitoringConfig in interface MonitoringAware<KeepAliveProbe>protected JmxObject createJmxManagementObject()
protected static void notifyProbesConnectionAccepted(KeepAlive keepAlive,
Connection connection)
KeepAliveProbes about the "keep-alive connection accepted" event.
keepAlive - the KeepAlive event occurred on.connection - Connection been accepted.
protected static void notifyProbesHit(KeepAlive keepAlive,
Connection connection,
int requestNumber)
KeepAliveProbes about the "keep-alive connection hit" event.
keepAlive - the KeepAlive event occurred on.connection - Connection been hit.requestNumber - the request number being processed on the given Connection.
protected static void notifyProbesRefused(KeepAlive keepAlive,
Connection connection)
KeepAliveProbes about the "keep-alive connection refused" event.
keepAlive - the KeepAlive event occurred on.connection - Connection been refused.
protected static void notifyProbesTimeout(KeepAlive keepAlive,
Connection connection)
KeepAliveProbes about the "keep-alive connection timeout" event.
keepAlive - the KeepAlive event occurred on.connection - Connection been timeout.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||