Package org.glassfish.grizzly.http
Interface KeepAliveProbe
-
- All Known Implementing Classes:
KeepAliveProbe.Adapter
public interface KeepAliveProbeMonitoring probe providing callbacks that may be invoked by GrizzlyKeepAlive.- Since:
- 2.0
- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classKeepAliveProbe.AdapterKeepAliveProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConnectionAcceptEvent(org.glassfish.grizzly.Connection connection)Method will be called, when new keep-alive HTTP connection is getting established.voidonHitEvent(org.glassfish.grizzly.Connection connection, int requestNumber)Method will be called, when HTTP request comes on a kept alive connection.voidonRefuseEvent(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.voidonTimeoutEvent(org.glassfish.grizzly.Connection connection)Method will be called, when the keep alive Connection idle timeout expired.
-
-
-
Method Detail
-
onConnectionAcceptEvent
void onConnectionAcceptEvent(org.glassfish.grizzly.Connection 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.- Parameters:
connection-Connection, the event belongs to.
-
onHitEvent
void onHitEvent(org.glassfish.grizzly.Connection connection, int requestNumber)Method will be called, when HTTP request comes on a kept alive connection.- Parameters:
connection-Connection, the event belongs to.requestNumber- HTTP request number, being processed on the given keep-alive connection.
-
onRefuseEvent
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.- Parameters:
connection-Connection, the event belongs to.
-
onTimeoutEvent
void onTimeoutEvent(org.glassfish.grizzly.Connection connection)
Method will be called, when the keep alive Connection idle timeout expired.- Parameters:
connection-Connection, the event belongs to.
-
-