类 ServerSentEvent<T>
java.lang.Object
cn.taketoday.http.codec.ServerSentEvent<T>
- 类型参数:
T- the type of data that this event contains
Representation for a Server-Sent Event for use with reactive Web support.
Flux<ServerSentEvent> or Observable<ServerSentEvent>- 从以下版本开始:
- 4.0
- 作者:
- Sebastien Deleuze, Arjen Poutsma, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static interfaceA mutable builder for aSseEvent.private static class -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> ServerSentEvent.Builder<T>builder()Return a builder for aSseEvent.static <T> ServerSentEvent.Builder<T>builder(T data) Return a builder for aSseEvent, populated with the given data.comment()Return the comment of this event, if available.data()Return thedatafield of this event, if available.event()Return theeventfield of this event, if available.id()Return theidfield of this event, if available.retry()Return theretryfield of this event, if available.toString()
-
字段详细资料
-
id
-
event
-
retry
-
comment
-
data
-
-
构造器详细资料
-
ServerSentEvent
-
-
方法详细资料
-
id
Return theidfield of this event, if available. -
event
Return theeventfield of this event, if available. -
retry
Return theretryfield of this event, if available. -
comment
Return the comment of this event, if available. -
data
Return thedatafield of this event, if available. -
toString
-
builder
Return a builder for aSseEvent.- 类型参数:
T- the type of data that this event contains- 返回:
- the builder
-
builder
Return a builder for aSseEvent, populated with the given data.- 类型参数:
T- the type of data that this event contains- 返回:
- the builder
-