接口 ServerHttpAsyncRequestControl
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.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
complete()
Mark asynchronous request processing as completed.boolean
isCompleted()
Return whether asynchronous request processing has been completed.boolean
isStarted()
Return whether asynchronous request processing has been started.void
start()
Enable asynchronous processing after which the response remains open until a call tocomplete()
is made or the server times out the request.void
start(long timeout)
A variation onstart()
that allows specifying a timeout value to use to use for asynchronous processing.
方法详细资料
start
void 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.
start
void 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.
isStarted
boolean isStarted()
Return whether asynchronous request processing has been started.
complete
void complete()
Mark asynchronous request processing as completed.
isCompleted
boolean isCompleted()
Return whether asynchronous request processing has been completed.