java.lang.Object
com.aoapps.servlet.filter.CountConcurrencyListener
- All Implemented Interfaces:
EventListener
,ServletRequestListener
Tracks the request concurrency, used to decide to use concurrent or sequential implementations.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Integer
getConcurrency
(ServletRequest request) Gets the concurrency at the beginning of the request ornull
when listener not active.void
void
-
Field Details
-
REQUEST_ATTRIBUTE
-
-
Constructor Details
-
CountConcurrencyListener
public CountConcurrencyListener()
-
-
Method Details
-
getConcurrency
Gets the concurrency at the beginning of the request ornull
when listener not active. -
requestInitialized
- Specified by:
requestInitialized
in interfaceServletRequestListener
-
requestDestroyed
- Specified by:
requestDestroyed
in interfaceServletRequestListener
-