接口 DeferredResultAdapter


  • @Deprecated
    public interface DeferredResultAdapter
    已过时。
    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.
    从以下版本开始:
    4.3
    作者:
    Rossen Stoyanchev
    • 方法详细资料

      • adaptToDeferredResult

        DeferredResult<?> adaptToDeferredResult​(Object returnValue)
        已过时。
        Create a DeferredResult for the given return value.
        参数:
        returnValue - the return value (never null)
        返回:
        the DeferredResult