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