public final class RxResponse extends Object
Observable into a response supported by the
Spring MVC.| Modifier and Type | Method and Description |
|---|---|
static <T> org.springframework.web.servlet.mvc.method.annotation.SseEmitter |
sse(long timeout,
org.springframework.http.MediaType mediaType,
rx.Observable<T> observable)
Wraps the
Observable into a SseEmitter. |
static <T> org.springframework.web.servlet.mvc.method.annotation.SseEmitter |
sse(org.springframework.http.MediaType mediaType,
rx.Observable<T> observable)
Wraps the
Observable into a SseEmitter. |
static <T> org.springframework.web.servlet.mvc.method.annotation.SseEmitter |
sse(rx.Observable<T> observable)
Wraps the
Observable into a SseEmitter. |
public static <T> org.springframework.web.servlet.mvc.method.annotation.SseEmitter sse(rx.Observable<T> observable)
Observable into a SseEmitter. Every value produced by the observable will be emitted
as server side event.T - the result typeobservable - the observable instancepublic static <T> org.springframework.web.servlet.mvc.method.annotation.SseEmitter sse(org.springframework.http.MediaType mediaType,
rx.Observable<T> observable)
Observable into a SseEmitter. Every value produced by the observable will be emitted
as server side event.T - the result typemediaType - the media type of produced entryobservable - the observable instancepublic static <T> org.springframework.web.servlet.mvc.method.annotation.SseEmitter sse(long timeout,
org.springframework.http.MediaType mediaType,
rx.Observable<T> observable)
Observable into a SseEmitter. Every value produced by the observable will be emitted
as server side event.T - the result typetimeout - the response timeoutmediaType - the media type of produced entryobservable - the observable instanceCopyright © 2017 Pivotal Software, Inc.. All rights reserved.