TimerFilter
The TimerFilter
has the following functions:
-
Measuring template performance
-
Throttling requests should the server be overloaded
-
Recording all requests along with their start and end time
The throttling function is carried out by the
Escenic
throttling service,
/neo/io/services/JspThrottleService
. If the number of
concurrent requests exceeds a specified maximum, then the throttling
service informs TimerFilter
, which rejects any excess
requests by returning HTTP 503 (Service Unavailable) responses.
The TimerFilter
is configured in
WEB.XML
as follows:
<filter> <filter-name>TimerFilter</filter-name> <filter-class>neo.servlet.TimerFilter</filter-class> <init-param> <param-name>collector</param-name> <param-value>/neo/io/reports/HitCollector</param-value> </init-param> </filter>
Configuration Parameters
collector
-
The component path of the hit collector that records all requests to the publication. The default value is
/neo/io/reports/HitCollector
.
Request Scope Attributes
This filter sets no request scope attributes.