Package com.linecorp.armeria.common.sse
Class ServerSentEventBuilder
java.lang.Object
com.linecorp.armeria.common.sse.ServerSentEventBuilder
A builder which creates a
ServerSentEvent
instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newServerSentEvent
instance.Sets the specifiedcomment
.Sets the specifieddata
.Sets the specifiedevent
.Sets the specifiedid
.Sets the specifiedretry
.
-
Method Details
-
id
Sets the specifiedid
. -
event
Sets the specifiedevent
. -
retry
Sets the specifiedretry
. -
comment
Sets the specifiedcomment
. -
data
Sets the specifieddata
. -
build
Creates a newServerSentEvent
instance.
-