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. See RequestTracker for registration.
    Since:
    9.0.0
    Author:
    Philip Helger
    • 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. Never null nor empty.
        aRequestScope - The request scope that is long running. Never null.
        nRunningMilliseconds - The milliseconds this request is already running.