public interface KeepAliveProbe
KeepAlive
.Modifier and Type | Interface and Description |
---|---|
static class |
KeepAliveProbe.Adapter
KeepAliveProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer. |
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.
|
void onConnectionAcceptEvent(Connection connection)
connection
- Connection
, the event belongs to.void onHitEvent(Connection connection, int requestNumber)
connection
- Connection
, the event belongs to.requestNumber
- HTTP request number, being processed on the given keep-alive connection.void onRefuseEvent(Connection connection)
connection
- Connection
, the event belongs to.void onTimeoutEvent(Connection connection)
connection
- Connection
, the event belongs to.Copyright © 2014 Oracle Corporation. All rights reserved.