Class MonitoringEventListener

    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • responseStatuses

        private final java.util.Queue<java.lang.Integer> responseStatuses
      • exceptionMapperEvents

        private final java.util.Queue<RequestEvent> exceptionMapperEvents
    • Constructor Detail

      • MonitoringEventListener

        public MonitoringEventListener()
    • Method Detail

      • onRequest

        public MonitoringEventListener.ReqEventListener onRequest​(RequestEvent requestEvent)
        Description copied from interface: ApplicationEventListener
        Process a new request and return a request event listener if listening to request events is required. The method is called once for each new incoming request. If listening to the request is required then request event must be returned from the method. Such a request event listener will receive all request events that one request. If listening to request event for the request is not required then null must be returned from the method (do not return empty mock listener in these cases as it will have negative performance impact).
        Specified by:
        onRequest in interface ApplicationEventListener
        Parameters:
        requestEvent - Event of type RequestEvent.Type.START.
        Returns:
        Request event listener that will monitor the events of the request connected with requestEvent; null otherwise.
      • getExceptionMapperEvents

        java.util.Queue<RequestEvent> getExceptionMapperEvents()
        Get the exception mapper event queue.
        Returns:
        Exception mapper event queue.
      • getResponseStatuses

        java.util.Queue<java.lang.Integer> getResponseStatuses()
        Get the queue with response status codes.
        Returns:
        response status queue.