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

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

Introduction

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

Prototype

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

Source Link

Document

Invoked before the start of concurrent handling in the original thread in which the Callable is submitted for concurrent handling.

Usage

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

public void applyBeforeConcurrentHandling(NativeWebRequest request, Callable<?> task) throws Exception {
    for (CallableProcessingInterceptor interceptor : this.interceptors) {
        interceptor.beforeConcurrentHandling(request, task);
    }/*from  w  w w . j a v  a2s.c o  m*/
}