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

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

Introduction

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

Prototype

default <T> void preProcess(NativeWebRequest request, Callable<T> task) throws Exception 

Source Link

Document

Invoked after the start of concurrent handling in the async thread in which the Callable is executed and before the actual invocation of the Callable .

Usage

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

public void applyPreProcess(NativeWebRequest request, Callable<?> task) throws Exception {
    for (CallableProcessingInterceptor interceptor : this.interceptors) {
        interceptor.preProcess(request, task);
        this.preProcessIndex++;
    }/*w w  w  . j  a v a 2 s . c o m*/
}