Package org.springframework.http.server
Interface ServerHttpAsyncRequestControl
- All Known Implementing Classes:
- ServletServerHttpAsyncRequestControl
public interface ServerHttpAsyncRequestControl
A control that can put the processing of an HTTP request in asynchronous mode during
 which the response remains open until explicitly closed.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptionvoidcomplete()Mark asynchronous request processing as completed.booleanReturn whether asynchronous request processing has been completed.booleanReturn whether asynchronous request processing has been started.voidstart()Enable asynchronous processing after which the response remains open until a call tocomplete()is made or the server times out the request.voidstart(long timeout) A variation onstart()that allows specifying a timeout value to use to use for asynchronous processing.
- 
Method Details- 
startvoid start()Enable asynchronous processing after which the response remains open until a call tocomplete()is made or the server times out the request. Once enabled, additional calls to this method are ignored.
- 
startvoid start(long timeout) A variation onstart()that allows specifying a timeout value to use to use for asynchronous processing. Ifcomplete()is not called within the specified value, the request times out.
- 
isStartedboolean isStarted()Return whether asynchronous request processing has been started.
- 
completevoid complete()Mark asynchronous request processing as completed.
- 
isCompletedboolean isCompleted()Return whether asynchronous request processing has been completed.
 
-