public static interface SseEmitter.SseEventBuilder
Modifier and Type | Method and Description |
---|---|
SseEmitter.SseEventBuilder |
comment(String comment)
Add an SSE "comment" line.
|
SseEmitter.SseEventBuilder |
data(Object object)
Add an SSE "data" line.
|
SseEmitter.SseEventBuilder |
data(Object object,
MediaType mediaType)
Add an SSE "data" line.
|
SseEmitter.SseEventBuilder |
id(String id)
Add an SSE "id" line.
|
SseEmitter.SseEventBuilder |
name(String eventName)
Add an SSE "event" line.
|
SseEmitter.SseEventBuilder |
reconnectTime(long reconnectTimeMillis)
Add an SSE "event" line.
|
SseEmitter.SseEventBuilder comment(String comment)
SseEmitter.SseEventBuilder name(String eventName)
SseEmitter.SseEventBuilder id(String id)
SseEmitter.SseEventBuilder reconnectTime(long reconnectTimeMillis)
SseEmitter.SseEventBuilder data(Object object)
SseEmitter.SseEventBuilder data(Object object, MediaType mediaType)