We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.server.
Class RequestTimer
java.lang.Object
com.vaadin.terminal.gwt.server.RequestTimer
All Implemented Interfaces:
- extends Object
- implements Serializable
public class RequestTimer
Times the handling of requests and stores the information as an attribute in the request. The timing info is later passed on to the client in the UIDL and the client provides JavaScript API for accessing this data from e.g. TestBench.
Author:
Jonatan Kronqvist / Vaadin Ltd
See Also:
Constructor Summary | |
---|---|
RequestTimer()
|
Method Summary | |
---|---|
void |
start()
Starts the timing of a request. |
void |
stop(AbstractWebApplicationContext context)
Stops the timing of a request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
RequestTimer
public RequestTimer()
Method Detail |
---|
start
public void start()
Starts the timing of a request. This should be called before any processing of the request.
stop
public void stop(AbstractWebApplicationContext context)
- Parameters:
context
-
Stops the timing of a request. This should be called when all processing of a request has finished.