Package | Description |
---|---|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Method and Description |
---|---|
SseEmitter.SseEventBuilder |
SseEmitter.SseEventBuilder.comment(java.lang.String comment)
Add an SSE "comment" line.
|
SseEmitter.SseEventBuilder |
SseEmitter.SseEventBuilder.data(java.lang.Object object)
Add an SSE "data" line.
|
SseEmitter.SseEventBuilder |
SseEmitter.SseEventBuilder.data(java.lang.Object object,
MediaType mediaType)
Add an SSE "data" line.
|
static SseEmitter.SseEventBuilder |
SseEmitter.event() |
SseEmitter.SseEventBuilder |
SseEmitter.SseEventBuilder.id(java.lang.String id)
Add an SSE "id" line.
|
SseEmitter.SseEventBuilder |
SseEmitter.SseEventBuilder.name(java.lang.String eventName)
Add an SSE "event" line.
|
SseEmitter.SseEventBuilder |
SseEmitter.SseEventBuilder.reconnectTime(long reconnectTimeMillis)
Add an SSE "retry" line.
|
Modifier and Type | Method and Description |
---|---|
void |
SseEmitter.send(SseEmitter.SseEventBuilder builder)
Send an SSE event prepared with the given builder.
|