public abstract class DeferredResultProcessingInterceptorAdapter extends Object implements DeferredResultProcessingInterceptor
DeferredResultProcessingInterceptor
interface for simplified implementation of individual methods.Constructor and Description |
---|
DeferredResultProcessingInterceptorAdapter() |
Modifier and Type | Method and Description |
---|---|
<T> void |
afterCompletion(NativeWebRequest request,
DeferredResult<T> deferredResult)
This implementation is empty.
|
<T> void |
beforeConcurrentHandling(NativeWebRequest request,
DeferredResult<T> deferredResult)
This implementation is empty.
|
<T> boolean |
handleTimeout(NativeWebRequest request,
DeferredResult<T> deferredResult)
This implementation returns
true by default allowing other interceptors
to be given a chance to handle the timeout. |
<T> void |
postProcess(NativeWebRequest request,
DeferredResult<T> deferredResult,
Object concurrentResult)
This implementation is empty.
|
<T> void |
preProcess(NativeWebRequest request,
DeferredResult<T> deferredResult)
This implementation is empty.
|
public DeferredResultProcessingInterceptorAdapter()
public <T> void beforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
beforeConcurrentHandling
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestException
- in case of errorspublic <T> void preProcess(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
preProcess
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestException
- in case of errorspublic <T> void postProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult) throws Exception
postProcess
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestconcurrentResult
- the result to which the DeferredResult
Exception
- in case of errorspublic <T> boolean handleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
true
by default allowing other interceptors
to be given a chance to handle the timeout.handleTimeout
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current request; if the
DeferredResult
is set, then concurrent processing is resumed and
subsequent interceptors are not invokedtrue
if processing should continue, or false
if
other interceptors should not be invokedException
- in case of errorspublic <T> void afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
afterCompletion
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestException
- in case of errors