(AsyncContextCallback asyncCtxt)
| 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) { |
no test coverage detected