org.javasimon.javaee.reqreporter.RequestReporter Maven / Gradle / Ivy
package org.javasimon.javaee.reqreporter;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.javasimon.Split;
import org.javasimon.javaee.SimonServletFilter;
/**
* RequestReporter interface .
*
* @author Richard "Virgo" Richter
*/
public interface RequestReporter {
/**
* Reports request that exceeds the threshold.
*
* @param request offending HTTP request
* @param requestSplit split measuring the offending request
* @param splits list of all splits started for this request
*/
void reportRequest(HttpServletRequest request, Split requestSplit, List splits);
/**
* Called by initialization after the instance creation. Useful when {@link org.javasimon.Manager} is needed
* ({@link org.javasimon.javaee.SimonServletFilter#getManager()}) and possibly for other scenarios.
*/
void setSimonServletFilter(SimonServletFilter simonServletFilter);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy