All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javasimon.javaee.reqreporter.RequestReporter Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
package org.javasimon.javaee.reqreporter;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

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