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 |
|---|
KeepAliveProbe.Adapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionAcceptEvent(Connection connection)
Method will be called, when new keep-alive HTTP connection is getting established.
|
void |
onHitEvent(Connection connection,
int requestNumber)
Method will be called, when HTTP request comes on a kept alive connection.
|
void |
onRefuseEvent(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(Connection connection)
Method will be called, when the keep alive Connection idle timeout expired.
|
public void onConnectionAcceptEvent(Connection connection)
onConnectionAcceptEvent in interface KeepAliveProbeconnection - Connection, the event belongs to.public void onHitEvent(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(Connection connection)
onRefuseEvent in interface KeepAliveProbeconnection - Connection, the event belongs to.public void onTimeoutEvent(Connection connection)
onTimeoutEvent in interface KeepAliveProbeconnection - Connection, the event belongs to.Copyright © 2016 Oracle Corporation. All Rights Reserved.