public static class KeepAliveProbe.Adapter extends Object implements KeepAliveProbe
KeepAliveProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer.KeepAliveProbe.Adapter| Constructor and Description |
|---|
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionAcceptEvent(org.glassfish.grizzly.Connection connection)
Method will be called, when new keep-alive HTTP connection is getting established.
|
void |
onHitEvent(org.glassfish.grizzly.Connection connection,
int requestNumber)
Method will be called, when HTTP request comes on a kept alive connection.
|
void |
onRefuseEvent(org.glassfish.grizzly.Connection connection)
Method will be called, when the Connection could be used in the keep alive mode,
but due to KeepAlive config limitations it will be closed.
|
void |
onTimeoutEvent(org.glassfish.grizzly.Connection connection)
Method will be called, when the keep alive Connection idle timeout expired.
|
public void onConnectionAcceptEvent(org.glassfish.grizzly.Connection connection)
onConnectionAcceptEvent in interface KeepAliveProbeconnection - Connection, the event belongs to.public void onHitEvent(org.glassfish.grizzly.Connection connection,
int requestNumber)
onHitEvent in interface KeepAliveProbeconnection - Connection, the event belongs to.requestNumber - HTTP request number, being processed on the given keep-alive connection.public void onRefuseEvent(org.glassfish.grizzly.Connection connection)
onRefuseEvent in interface KeepAliveProbeconnection - Connection, the event belongs to.public void onTimeoutEvent(org.glassfish.grizzly.Connection connection)
onTimeoutEvent in interface KeepAliveProbeconnection - Connection, the event belongs to.Copyright © 2017–2019 Oracle Corporation. All rights reserved.