KeepAlive.
| Modifier and Type | Class and Description |
|---|---|
| public static class | KeepAliveProbe.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | onConnectionAcceptEvent(Connection<L>
Connection, the event belongs to.Method will be called, when new keep-alive HTTP connection is getting established. |
| public void | onHitEvent(Connection<L>
Connection, the event belongs to.HTTP request number, being processed on the given keep-alive connection. requestNumber)Method will be called, when HTTP request comes on a kept alive connection. |
| public void | onRefuseEvent(Connection<L>
Connection, the event belongs to.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. |
| public void | onTimeoutEvent(Connection<L>
Connection, the event belongs to.Method will be called, when the keep alive Connection idle timeout expired. |
| onConnectionAcceptEvent | back to summary |
|---|---|
| public void onConnectionAcceptEvent(Connection<L> connection) Method will be called, when new keep-alive HTTP connection is getting established. This method is getting invoked, when 1st HTTP request processing completes, but the Connection will be kept alive to process next HTTP request.
| |
| onHitEvent | back to summary |
|---|---|
| public void onHitEvent(Connection<L> connection, int requestNumber) Method will be called, when HTTP request comes on a kept alive connection.
| |
| onRefuseEvent | back to summary |
|---|---|
| public void onRefuseEvent(Connection<L> 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.
| |
| onTimeoutEvent | back to summary |
|---|---|
| public void onTimeoutEvent(Connection<L> connection) Method will be called, when the keep alive Connection idle timeout expired.
| |
KeepAliveProbe adapter that provides no-op implementations for all interface methods allowing easy extension
by the developer.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | onConnectionAcceptEvent(Connection<L> connection)
Implements org. Method will be called, when new keep-alive HTTP connection is getting established. |
| public void | onHitEvent(Connection<L> connection, int requestNumber)
Implements org. Method will be called, when HTTP request comes on a kept alive connection. |
| public void | onRefuseEvent(Connection<L> connection)
Implements org. 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. |
| public void | onTimeoutEvent(Connection<L> connection)
Implements org. Method will be called, when the keep alive Connection idle timeout expired. |
| Adapter | back to summary |
|---|---|
| public Adapter() | |
| onConnectionAcceptEvent | back to summary |
|---|---|
| public void onConnectionAcceptEvent(Connection<L> connection) Implements org. Doc from org. Method will be called, when new keep-alive HTTP connection is getting established. This method is getting invoked, when 1st HTTP request processing completes, but the Connection will be kept alive to process next HTTP request.
| |
| onHitEvent | back to summary |
|---|---|
| public void onHitEvent(Connection<L> connection, int requestNumber) Implements org. Doc from org. Method will be called, when HTTP request comes on a kept alive connection.
| |
| onRefuseEvent | back to summary |
|---|---|
| public void onRefuseEvent(Connection<L> connection) Implements org. Doc from org. 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.
| |
| onTimeoutEvent | back to summary |
|---|---|
| public void onTimeoutEvent(Connection<L> connection) Implements org. Doc from org. Method will be called, when the keep alive Connection idle timeout expired.
| |