mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 00:09:02 +00:00
Allow setting timeout in ResponseBodyEmitter
Issue: SPR-13104
This commit is contained in:
+4
-1
@@ -78,9 +78,12 @@ public class DeferredResult<T> {
|
||||
|
||||
/**
|
||||
* Create a DeferredResult with a timeout value.
|
||||
* <p>By default not set in which case the default configured in the MVC
|
||||
* Java Config or the MVC namespace is used, or if that's not set, then the
|
||||
* timeout depends on the default of the underlying server.
|
||||
* @param timeout timeout value in milliseconds
|
||||
*/
|
||||
public DeferredResult(long timeout) {
|
||||
public DeferredResult(Long timeout) {
|
||||
this(timeout, RESULT_NONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user