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

Method asyncStart

java/org/apache/coyote/AsyncStateMachine.java:241–253  ·  view source on GitHub ↗
(AsyncContextCallback asyncCtxt)

Source from the content-addressed store, hash-verified

239 }
240
241 synchronized void asyncStart(AsyncContextCallback asyncCtxt) {
242 if (state == AsyncState.DISPATCHED) {
243 generation.incrementAndGet();
244 updateState(AsyncState.STARTING);
245 // Note: In this instance, caller is responsible for calling
246 // asyncCtxt.incrementInProgressAsyncCount() as that allows simpler
247 // error handling.
248 this.asyncCtxt = asyncCtxt;
249 lastAsyncStart = System.currentTimeMillis();
250 } else {
251 throw new IllegalStateException(sm.getString("asyncStateMachine.invalidAsyncState", "asyncStart()", state));
252 }
253 }
254
255 synchronized void asyncOperation() {
256 if (state == AsyncState.STARTED) {

Callers 1

actionMethod · 0.80

Calls 2

updateStateMethod · 0.95
getStringMethod · 0.65

Tested by

no test coverage detected