类 ServerSentEvent.BuilderImpl<T>
java.lang.Object
cn.taketoday.http.codec.ServerSentEvent.BuilderImpl<T>
- 所有已实现的接口:
ServerSentEvent.Builder<T>
- 封闭类:
- ServerSentEvent<T>
private static class ServerSentEvent.BuilderImpl<T>
extends Object
implements ServerSentEvent.Builder<T>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Builds the event.Set SSE comment.Set the value of thedatafield.Set the value of theeventfield.Set the value of theidfield.Set the value of theretryfield.
-
字段详细资料
-
id
-
event
-
retry
-
comment
-
data
-
-
构造器详细资料
-
BuilderImpl
public BuilderImpl() -
BuilderImpl
-
-
方法详细资料
-
id
从接口复制的说明:ServerSentEvent.BuilderSet the value of theidfield.- 指定者:
id在接口中ServerSentEvent.Builder<T>- 参数:
id- the value of the id field- 返回:
thisbuilder
-
event
从接口复制的说明:ServerSentEvent.BuilderSet the value of theeventfield.- 指定者:
event在接口中ServerSentEvent.Builder<T>- 参数:
event- the value of the event field- 返回:
thisbuilder
-
retry
从接口复制的说明:ServerSentEvent.BuilderSet the value of theretryfield.- 指定者:
retry在接口中ServerSentEvent.Builder<T>- 参数:
retry- the value of the retry field- 返回:
thisbuilder
-
comment
从接口复制的说明:ServerSentEvent.BuilderSet SSE comment. If a multi-line comment is provided, it will be turned into multiple SSE comment lines as defined in Server-Sent Events W3C recommendation.- 指定者:
comment在接口中ServerSentEvent.Builder<T>- 参数:
comment- the comment to set- 返回:
thisbuilder
-
data
从接口复制的说明:ServerSentEvent.BuilderSet the value of thedatafield. If thedataargument is a multi-lineString, it will be turned into multipledatafield lines as defined in the Server-Sent Events W3C recommendation. Ifdatais not a String, it will be encoded into JSON.- 指定者:
data在接口中ServerSentEvent.Builder<T>- 参数:
data- the value of the data field- 返回:
thisbuilder
-
build
从接口复制的说明:ServerSentEvent.BuilderBuilds the event.- 指定者:
build在接口中ServerSentEvent.Builder<T>- 返回:
- the built event
-