Example usage for org.springframework.web.context.request.async DeferredResultProcessingInterceptor preProcess

List of usage examples for org.springframework.web.context.request.async DeferredResultProcessingInterceptor preProcess

Introduction

In this page you can find the example usage for org.springframework.web.context.request.async DeferredResultProcessingInterceptor preProcess.

Prototype

default <T> void preProcess(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception 

Source Link

Document

Invoked immediately after the start of concurrent handling, in the same thread that started it.

Usage

From source file:org.springframework.web.context.request.async.DeferredResultInterceptorChain.java

public void applyPreProcess(NativeWebRequest request, DeferredResult<?> deferredResult) throws Exception {
    for (DeferredResultProcessingInterceptor interceptor : this.interceptors) {
        interceptor.preProcess(request, deferredResult);
        this.preProcessingIndex++;
    }//from w w  w.  j av a  2s.c om
}