类的使用
org.springframework.http.codec.ServerSentEvent
使用ServerSentEvent的程序包 程序包 说明 org.springframework.http.codec org.springframework.web.reactive.function Provides a foundation for both the reactive client and server subpackages.org.springframework.http.codec中ServerSentEvent的使用
返回ServerSentEvent的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 ServerSentEvent<T>
ServerSentEvent.Builder. build()
Builds the event.org.springframework.web.reactive.function中ServerSentEvent的使用
类型参数类型为ServerSentEvent的org.springframework.web.reactive.function中的方法 修饰符和类型 方法 说明 static <T,S extends org.reactivestreams.Publisher<ServerSentEvent<T>>>
BodyInserter<S,ServerHttpResponse>BodyInserters. fromServerSentEvents(S eventsPublisher)
Inserter to write the givenServerSentEvent
publisher.