Example usage for Java org.springframework.web.context.request.async DeferredResult fields, constructors, methods, implement or subclass
The text is from its open source code.
DeferredResult() Create a DeferredResult. | |
DeferredResult(@Nullable Long timeoutValue, Object timeoutResult) Create a DeferredResult with a timeout value and a default result to use in case of timeout. | |
DeferredResult(@Nullable Long timeoutValue, Supplier> timeoutResult) Variant of #DeferredResult(Long,Object) that accepts a dynamic fallback value based on a Supplier . | |
DeferredResult(Long timeoutValue) Create a DeferredResult with a custom timeout value. |
DeferredResultProcessingInterceptor | getInterceptor() |
Long | getTimeoutValue() Return the configured timeout value in milliseconds. |
boolean | hasResult() Return true if the DeferredResult has been set. |
boolean | isSetOrExpired() Return true if this DeferredResult is no longer usable either because it was previously set or because the underlying request expired. |
void | onCompletion(Runnable callback) Register code to invoke when the async request completes. |
void | onTimeout(Runnable callback) Register code to invoke when the async request times out. |
boolean | setErrorResult(Object result) Set an error value for the DeferredResult and handle it. |
boolean | setResult(T result) Set the value for the DeferredResult and handle it. |
void | setResultHandler(DeferredResultHandler resultHandler) Provide a handler to use to handle the result value. |