public static interface SseEmitter.SseEventBuilder
Modifier and Type | Method and Description |
---|---|
java.util.Set<ResponseBodyEmitter.DataWithMediaType> |
build()
Return one or more Object-MediaType pairs to write via
SseEmitter.send(Object, MediaType) . |
SseEmitter.SseEventBuilder |
comment(java.lang.String comment)
Add an SSE "comment" line.
|
SseEmitter.SseEventBuilder |
data(java.lang.Object object)
Add an SSE "data" line.
|
SseEmitter.SseEventBuilder |
data(java.lang.Object object,
MediaType mediaType)
Add an SSE "data" line.
|
SseEmitter.SseEventBuilder |
id(java.lang.String id)
Add an SSE "id" line.
|
SseEmitter.SseEventBuilder |
name(java.lang.String eventName)
Add an SSE "event" line.
|
SseEmitter.SseEventBuilder |
reconnectTime(long reconnectTimeMillis)
Add an SSE "event" line.
|
SseEmitter.SseEventBuilder comment(java.lang.String comment)
SseEmitter.SseEventBuilder name(java.lang.String eventName)
SseEmitter.SseEventBuilder id(java.lang.String id)
SseEmitter.SseEventBuilder reconnectTime(long reconnectTimeMillis)
SseEmitter.SseEventBuilder data(java.lang.Object object)
SseEmitter.SseEventBuilder data(java.lang.Object object, MediaType mediaType)
java.util.Set<ResponseBodyEmitter.DataWithMediaType> build()
SseEmitter.send(Object, MediaType)
.