Top Description Methods
org.springframework.http.server

public Interface ServerHttpAsyncRequestControl

Known Direct Implementers
org.springframework.http.server.ServletServerHttpAsyncRequestControl

A control that can put the processing of an HTTP request in asynchronous mode during which the response remains open until explicitly closed.
Author
Rossen Stoyanchev
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
complete()

Mark asynchronous request processing as completed.

public boolean
isCompleted()

Return whether asynchronous request processing has been completed.

public boolean
isStarted()

Return whether asynchronous request processing has been started.

public void
start()

Enable asynchronous processing after which the response remains open until a call to complete() is made or the server times out the request.

public void
start(long timeout)

A variation on start() that allows specifying a timeout value to use for asynchronous processing.

Method Detail

completeback to summary
public void complete()

Mark asynchronous request processing as completed.

isCompletedback to summary
public boolean isCompleted()

Return whether asynchronous request processing has been completed.

isStartedback to summary
public boolean isStarted()

Return whether asynchronous request processing has been started.

startback to summary
public void start()

Enable asynchronous processing after which the response remains open until a call to complete() is made or the server times out the request. Once enabled, additional calls to this method are ignored.

startback to summary
public void start(long timeout)

A variation on start() that allows specifying a timeout value to use for asynchronous processing. If complete() is not called within the specified value, the request times out.