Package | Description |
---|---|
org.springframework.http.codec |
Modifier and Type | Method and Description |
---|---|
static <T> ServerSentEvent.Builder<T> |
ServerSentEvent.builder()
Return a builder for a
SseEvent . |
static <T> ServerSentEvent.Builder<T> |
ServerSentEvent.builder(T data)
Return a builder for a
SseEvent , populated with the give 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. |