| Modifier and Type | Class and Description |
|---|---|
static class |
SseEventSource.SseEventSourceBuilder
Builder for SseEventSource
|
| Modifier and Type | Method and Description |
|---|---|
static SseEventSource.SseEventSourceBuilder |
builder() |
SseEventSource |
comment(String comment)
Add an SSE "comment" line.
|
SseEventSource |
data(String object)
Add an SSE "data" line.
|
SseEventSource |
id(String id)
Add an SSE "id" line.
|
SseEventSource |
name(String eventName)
Add an SSE "event" line.
|
SseEventSource |
reconnectTime(long reconnectTimeMillis)
Add an SSE "retry" line.
|
public static SseEventSource.SseEventSourceBuilder builder()
public SseEventSource id(String id)
public SseEventSource name(String eventName)
public SseEventSource reconnectTime(long reconnectTimeMillis)
reconnectTime in interface SseEventreconnectTimeMillis - SSE "retry" linepublic SseEventSource comment(String comment)
public SseEventSource data(String object)
Copyright © 2024 flmelody. All rights reserved.