public class SseEvent extends Object
| Constructor and Description |
|---|
SseEvent() |
| Modifier and Type | Method and Description |
|---|---|
SseEvent |
comment(String comment)
添加 SSE "comment" 行.
|
SseEvent |
data(Object object)
添加 SSE "data" 行.
|
SseEvent |
id(long id)
添加 SSE "id" 行.
|
SseEvent |
id(String id)
添加 SSE "id" 行.
|
SseEvent |
name(String event)
添加 SSE "event" 行.
|
SseEvent |
reconnectTime(long reconnectTimeMillis)
添加 SSE "retry" 行.
|
String |
toString() |
Copyright © 2025. All rights reserved.