Java org.springframework.web.context.request.async DeferredResult fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.context.request.async DeferredResult fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.context.request.async DeferredResult.

The text is from its open source code.

Subclass

org.springframework.web.context.request.async.DeferredResult has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

DeferredResultProcessingInterceptorgetInterceptor()
LonggetTimeoutValue()
Return the configured timeout value in milliseconds.
booleanhasResult()
Return true if the DeferredResult has been set.
booleanisSetOrExpired()
Return true if this DeferredResult is no longer usable either because it was previously set or because the underlying request expired.
voidonCompletion(Runnable callback)
Register code to invoke when the async request completes.
voidonTimeout(Runnable callback)
Register code to invoke when the async request times out.
booleansetErrorResult(Object result)
Set an error value for the DeferredResult and handle it.
booleansetResult(T result)
Set the value for the DeferredResult and handle it.
voidsetResultHandler(DeferredResultHandler resultHandler)
Provide a handler to use to handle the result value.