# Uses of Interface
org.springframework.http.codec.ServerSentEvent.Builder

Packages that use ServerSentEvent.Builder
Package
Description
org.springframework.http.codec
Provides implementations of `Encoder` and `Decoder` for web use.

## Uses of ServerSentEvent.Builder in org.springframework.http.codec

Methods in org.springframework.http.codec that return ServerSentEvent.Builder
Modifier and Type
Method
Description
`static <T> ServerSentEvent.Builder<T>`
ServerSentEvent.`builder()`
Return a builder for a `ServerSentEvent`.
`static <T> ServerSentEvent.Builder<T>`
ServerSentEvent.`builder(T data)`
Return a builder for a `ServerSentEvent`, populated with the given data.
`ServerSentEvent.Builder<T>`
ServerSentEvent.Builder.`comment(String comment)`
Set SSE comment.
`ServerSentEvent.Builder<T>`
ServerSentEvent.Builder.`data(T data)`
Set the value of the `data` field.
`ServerSentEvent.Builder<T>`
ServerSentEvent.Builder.`event(String event)`
Set the value of the `event` field.
`ServerSentEvent.Builder<T>`
ServerSentEvent.Builder.`id(String id)`
Set the value of the `id` field.
`ServerSentEvent.Builder<T>`
ServerSentEvent.Builder.`retry(Duration retry)`
Set the value of the `retry` field.