Interface IParallelRunningRequestCallback

  • All Superinterfaces:
    com.helger.commons.callback.ICallback, Serializable
    All Known Implementing Classes:
    LoggingParallelRunningRequestCallback

    public interface IParallelRunningRequestCallback
    extends com.helger.commons.callback.ICallback
    Callback interface to be implemented to get notified when a certain amount of parallel requests are present. requests. See RequestTracker for registration.
    Since:
    9.0.0
    Author:
    Philip Helger
    • 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. Never null.
      • onParallelRunningRequestsBelowLimit

        void onParallelRunningRequestsBelowLimit()
        This method is only called after the threshold was exceeded, when it is back to normal.
        Since:
        4.0.2