Top Description Methods
org.glassfish.grizzly.http.server

public Interface TimeoutHandler


Handler, which processes suspended Response timeout and is able to either confirm it or reset.
Author
Alexey Stashok

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true to cancel the Response processing, or false to reset the timeout.
onTimeout
(final Response response)

Method is called, when suspended Response timeout expired.

Method Detail

onTimeoutback to summary
public boolean onTimeout(final Response response)

Method is called, when suspended Response timeout expired. The custom implementation may decide to confirm timeout and return true, so the Response will be canceled immediately after that, or return false to reset the timeout and give more time for processing.

Parameters
response:Response

Response.

Returns:boolean

true to cancel the Response processing, or false to reset the timeout.