Top Description Inners Methods
org.glassfish.grizzly.http

public Interface KeepAliveProbe

Known Direct Implementers
org.glassfish.grizzly.http.KeepAliveProbe.Adapter
Imports
org.glassfish.grizzly.Connection

Monitoring probe providing callbacks that may be invoked by Grizzly KeepAlive.
Author
Alexey Stashok
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
KeepAliveProbe.Adapter

KeepAliveProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.

Method Summary

Modifier and TypeMethod and Description
public void
onConnectionAcceptEvent(Connection<L>
Connection, the event belongs to.
connection
)

Method will be called, when new keep-alive HTTP connection is getting established.

public void
onHitEvent(Connection<L>
Connection, the event belongs to.
connection
,
int
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.
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.

public void
onTimeoutEvent(Connection<L>
Connection, the event belongs to.
connection
)

Method will be called, when the keep alive Connection idle timeout expired.

Method Detail

onConnectionAcceptEventback 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.

Parameters
connection:Connection<L>

Connection, the event belongs to.

onHitEventback to summary
public void onHitEvent(Connection<L> connection, int requestNumber)

Method will be called, when HTTP request comes on a kept alive connection.

Parameters
connection:Connection<L>

Connection, the event belongs to.

requestNumber:int

HTTP request number, being processed on the given keep-alive connection.

onRefuseEventback 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.

Parameters
connection:Connection<L>

Connection, the event belongs to.

onTimeoutEventback to summary
public void onTimeoutEvent(Connection<L> connection)

Method will be called, when the keep alive Connection idle timeout expired.

Parameters
connection:Connection<L>

Connection, the event belongs to.

org.glassfish.grizzly.http back to summary

public Class KeepAliveProbe.Adapter

extends Object
implements KeepAliveProbe
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http.KeepAliveProbe
Annotations
@SuppressWarnings:UnusedDeclaration

KeepAliveProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
Since
2.1.9

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onConnectionAcceptEvent(Connection<L> connection)

Implements org.glassfish.grizzly.http.KeepAliveProbe.onConnectionAcceptEvent.

Method will be called, when new keep-alive HTTP connection is getting established.

public void
onHitEvent(Connection<L> connection, int requestNumber)

Implements org.glassfish.grizzly.http.KeepAliveProbe.onHitEvent.

Method will be called, when HTTP request comes on a kept alive connection.

public void
onRefuseEvent(Connection<L> connection)

Implements org.glassfish.grizzly.http.KeepAliveProbe.onRefuseEvent.

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.glassfish.grizzly.http.KeepAliveProbe.onTimeoutEvent.

Method will be called, when the keep alive Connection idle timeout expired.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Adapterback to summary
public Adapter()

Method Detail

onConnectionAcceptEventback to summary
public void onConnectionAcceptEvent(Connection<L> connection)

Implements org.glassfish.grizzly.http.KeepAliveProbe.onConnectionAcceptEvent.

Doc from org.glassfish.grizzly.http.KeepAliveProbe.onConnectionAcceptEvent.

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.

Annotations
@Override
onHitEventback to summary
public void onHitEvent(Connection<L> connection, int requestNumber)

Implements org.glassfish.grizzly.http.KeepAliveProbe.onHitEvent.

Doc from org.glassfish.grizzly.http.KeepAliveProbe.onHitEvent.

Method will be called, when HTTP request comes on a kept alive connection.

Annotations
@Override
onRefuseEventback to summary
public void onRefuseEvent(Connection<L> connection)

Implements org.glassfish.grizzly.http.KeepAliveProbe.onRefuseEvent.

Doc from org.glassfish.grizzly.http.KeepAliveProbe.onRefuseEvent.

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.

Annotations
@Override
onTimeoutEventback to summary
public void onTimeoutEvent(Connection<L> connection)

Implements org.glassfish.grizzly.http.KeepAliveProbe.onTimeoutEvent.

Doc from org.glassfish.grizzly.http.KeepAliveProbe.onTimeoutEvent.

Method will be called, when the keep alive Connection idle timeout expired.

Annotations
@Override