Interface DeferredResultAdapter


  • @Deprecated
    public interface DeferredResultAdapter
    Deprecated.
    in 4.3.8 since 5.0 adds first-class support for reactive type return values from Spring MVC controller methods based on the pluggable ReactiveAdapterRegistry mechanism. Yet another alternative would be to implement a custom AsyncHandlerMethodReturnValueHandler.
    Contract to adapt a single-value async return value to DeferredResult.
    Since:
    4.3
    Author:
    Rossen Stoyanchev
    • Method Detail

      • adaptToDeferredResult

        DeferredResult<?> adaptToDeferredResult​(Object returnValue)
        Deprecated.
        Create a DeferredResult for the given return value.
        Parameters:
        returnValue - the return value (never null)
        Returns:
        the DeferredResult