public class SseEvent extends Object
| Constructor and Description |
|---|
SseEvent() |
| Modifier and Type | Method and Description |
|---|---|
String |
build()
构建为事件文本
|
SseEvent |
data(Object object)
添加 SSE "data" 行.
|
SseEvent |
id(String id)
添加 SSE "id" 行.
|
SseEvent |
name(String name)
添加 SSE "event" 行.
|
SseEvent |
reconnectTime(long reconnectTimeMillis)
添加 SSE "retry" 行.
|
Copyright © 2025. All rights reserved.