Example usage for org.springframework.web.servlet.config.annotation AsyncSupportConfigurer setDefaultTimeout

List of usage examples for org.springframework.web.servlet.config.annotation AsyncSupportConfigurer setDefaultTimeout

Introduction

In this page you can find the example usage for org.springframework.web.servlet.config.annotation AsyncSupportConfigurer setDefaultTimeout.

Prototype

public AsyncSupportConfigurer setDefaultTimeout(long timeout) 

Source Link

Document

Specify the amount of time, in milliseconds, before asynchronous request handling times out.

Usage

From source file:net.brainage.nest.NestApplication.java

@Override
public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
    configurer.setDefaultTimeout(10);
    configurer.setTaskExecutor(asyncTaskExecutor());
}