MCPcopy Create free account
hub / github.com/apache/tomcat / run

Method run

webapps/examples/WEB-INF/classes/async/Async0.java:51–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 actx.setTimeout(Long.MAX_VALUE);
50 Runnable run = new Runnable() {
51 @Override
52 public void run() {
53 try {
54 req.setAttribute("dispatch", Boolean.TRUE);
55 Thread.currentThread().setName("Async0-Thread");
56 log.info("Putting AsyncThread to sleep");
57 Thread.sleep(2*1000);
58 log.info("Dispatching");
59 actx.dispatch();
60 }catch (InterruptedException | IllegalStateException x) {
61 log.error("Async1",x);
62 }
63 }
64 };
65 Thread t = new Thread(run);
66 t.start();

Callers

nothing calls this directly

Calls 5

setAttributeMethod · 0.65
setNameMethod · 0.65
infoMethod · 0.65
dispatchMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected