Package com.helger.xservlet.requesttrack
Interface IParallelRunningRequestCallback
-
- All Superinterfaces:
com.helger.commons.callback.ICallback,Serializable
- All Known Implementing Classes:
LoggingParallelRunningRequestCallback
public interface IParallelRunningRequestCallback extends com.helger.commons.callback.ICallbackCallback interface to be implemented to get notified when a certain amount of parallel requests are present. requests. SeeRequestTrackerfor registration.- Since:
- 9.0.0
- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonParallelRunningRequests(int nParallelRequests, List<TrackedRequest> aRequests)Callback invoked when a certain amount of parallel requests run.voidonParallelRunningRequestsBelowLimit()This method is only called after the threshold was exceeded, when it is back to normal.
-
-
-
Method Detail
-
onParallelRunningRequests
void onParallelRunningRequests(@Nonnegative int nParallelRequests, @Nonnull @Nonempty List<TrackedRequest> aRequests)
Callback invoked when a certain amount of parallel requests run.- Parameters:
nParallelRequests- The number of parallel requests. Always > 0.aRequests- The list of requests currently running. The size should be identical to the number of parallel requests. Nevernull.
-
onParallelRunningRequestsBelowLimit
void onParallelRunningRequestsBelowLimit()
This method is only called after the threshold was exceeded, when it is back to normal.- Since:
- 4.0.2
-
-