Interface SseEmitter.SseEventBuilder
- Enclosing class:
- SseEmitter
public static interface SseEmitter.SseEventBuilder
A builder for an SSE event.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Return one or more Object-MediaType pairs to write viaSseEmitter.send(Object, MediaType)
.Add an SSE "comment" line.Add an SSE "data" line.Add an SSE "data" line.Add an SSE "id" line.Add an SSE "event" line.reconnectTime
(long reconnectTimeMillis) Add an SSE "retry" line.
-
Method Details
-
id
Add an SSE "id" line. -
name
Add an SSE "event" line. -
reconnectTime
Add an SSE "retry" line. -
comment
Add an SSE "comment" line. -
data
Add an SSE "data" line. -
data
Add an SSE "data" line. -
build
Set<ResponseBodyEmitter.DataWithMediaType> build()Return one or more Object-MediaType pairs to write viaSseEmitter.send(Object, MediaType)
.- Since:
- 4.2.3
-