Package com.helger.xservlet.requesttrack
Interface ILongRunningRequestCallback
-
- All Superinterfaces:
com.helger.commons.callback.ICallback,Serializable
- All Known Implementing Classes:
LoggingLongRunningRequestCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ILongRunningRequestCallback extends com.helger.commons.callback.ICallback
Callback interface to be implemented to get notified on long running requests. SeeRequestTrackerfor registration.- Since:
- 9.0.0
- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonLongRunningRequest(String sUniqueRequestID, com.helger.web.scope.IRequestWebScope aRequestScope, long nRunningMilliseconds)Callback invoked for a single long running request
-
-
-
Method Detail
-
onLongRunningRequest
void onLongRunningRequest(@Nonnull @Nonempty String sUniqueRequestID, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope, @Nonnegative long nRunningMilliseconds)
Callback invoked for a single long running request- Parameters:
sUniqueRequestID- The unique request ID. Nevernullnor empty.aRequestScope- The request scope that is long running. Nevernull.nRunningMilliseconds- The milliseconds this request is already running.
-
-