Interface WorkloadErrorHandler


  • public interface WorkloadErrorHandler
    Interface defines API of a workload error handler. The workload error handler is used to indicate problems during the dispatching of requests
    Author:
    JEAF Development Team
    • Method Detail

      • requestRejected

        void requestRejected​(RequestTypeKey pRequestTypeKey,
                             java.lang.Exception pException)
        Method is called when JEAF's workload manager rejects a request. What the concrete reaction in such a case is, is highly depending on the concrete environment.
        Parameters:
        pRequestTypeKey - Key of the request type that was rejected. The parameter is never null.
        pException - Exception containing further information why the request was rejected. The parameter is never null.
      • maximumLatencyExceeded

        void maximumLatencyExceeded​(RequestTypeKey pRequestTypeKey,
                                    java.lang.Exception pException)
        Method is called when JEAF's workload manager detects that the maximum latency / waiting time for a request is exceeded.
        Parameters:
        pRequestTypeKey - Key of the request type. The parameter is never null.
        pException - Exception containing further information. The parameter is never null.