Interface ServletHttpRequest.AsyncExecution
- Enclosing interface:
ServletHttpRequest<N,B>
public static interface ServletHttpRequest.AsyncExecution
Async execution.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Method should be called after the async processing is completed.default voidonEndedByContainer(Runnable hook) Registers what to run if the container ends the asynchronous execution itself, on a timeout or an I/O error, beforecomplete()has been called.
-
Method Details
-
complete
void complete()Method should be called after the async processing is completed. -
onEndedByContainer
Registers what to run if the container ends the asynchronous execution itself, on a timeout or an I/O error, beforecomplete()has been called. The hook runs at most once, and a subsequentcomplete()is then expected to be tolerated. The default registers nothing, for a runtime whose container never ends an execution on its own.- Parameters:
hook- What to run when the container ends the execution- Since:
- 6.2.0
-