List of usage examples for org.springframework.web.servlet.mvc.method.annotation ReactiveTypeHandler ReactiveTypeHandler
ReactiveTypeHandler(ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager)
From source file:org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitterReturnValueHandler.java
/** * Complete constructor with pluggable "reactive" type support. * * @param messageConverters converters to write emitted objects with * @param reactiveRegistry for reactive return value type support * @param executor for blocking I/O writes of items emitted from reactive types * @param manager for detecting streaming media types * * @since 5.0/*from w w w. j a va 2 s. c om*/ */ public ResponseBodyEmitterReturnValueHandler(List<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry reactiveRegistry, TaskExecutor executor, ContentNegotiationManager manager) { Assert.notEmpty(messageConverters, "HttpMessageConverter List must not be empty"); this.messageConverters = messageConverters; this.reactiveHandler = new ReactiveTypeHandler(reactiveRegistry, executor, manager); }