Package org.glassfish.grizzly.http
Class KeepAliveProbe.Adapter
- java.lang.Object
-
- org.glassfish.grizzly.http.KeepAliveProbe.Adapter
-
- All Implemented Interfaces:
KeepAliveProbe
- Enclosing interface:
- KeepAliveProbe
public static class KeepAliveProbe.Adapter extends Object implements KeepAliveProbe
KeepAliveProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer.- Since:
- 2.1.9
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.grizzly.http.KeepAliveProbe
KeepAliveProbe.Adapter
-
-
Constructor Summary
Constructors Constructor Description Adapter()
-
Method Summary
All Methods Instance Methods Concrete 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
public 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.- Specified by:
onConnectionAcceptEventin interfaceKeepAliveProbe- Parameters:
connection-Connection, the event belongs to.
-
onHitEvent
public void onHitEvent(org.glassfish.grizzly.Connection connection, int requestNumber)Method will be called, when HTTP request comes on a kept alive connection.- Specified by:
onHitEventin interfaceKeepAliveProbe- Parameters:
connection-Connection, the event belongs to.requestNumber- HTTP request number, being processed on the given keep-alive connection.
-
onRefuseEvent
public 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.- Specified by:
onRefuseEventin interfaceKeepAliveProbe- Parameters:
connection-Connection, the event belongs to.
-
onTimeoutEvent
public void onTimeoutEvent(org.glassfish.grizzly.Connection connection)
Method will be called, when the keep alive Connection idle timeout expired.- Specified by:
onTimeoutEventin interfaceKeepAliveProbe- Parameters:
connection-Connection, the event belongs to.
-
-