public class EventSourceMessage extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static String |
COLON |
private static String |
DATA |
private static String |
EVENT |
private static String |
ID |
private static String |
LF |
private StringBuilder |
payload |
private static String |
RETRY |
private static Pattern |
START |
| 构造器和说明 |
|---|
EventSourceMessage() |
EventSourceMessage(String data) |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
appendFieldValue(String field,
String value) |
String |
build() |
EventSourceMessage |
comment(String data) |
EventSourceMessage |
data(String data) |
EventSourceMessage |
event(String event) |
EventSourceMessage |
id(long id) |
EventSourceMessage |
id(String id) |
private void |
prependOnAllLines(String field,
String value) |
EventSourceMessage |
retry(Long reconnectionTimeMillis) |
private static final Pattern START
private final StringBuilder payload
public EventSourceMessage()
public EventSourceMessage(String data)
public EventSourceMessage data(String data)
public EventSourceMessage comment(String data)
public EventSourceMessage id(long id)
public EventSourceMessage id(String id)
public EventSourceMessage event(String event)
public EventSourceMessage retry(Long reconnectionTimeMillis)
public String build()
Copyright © 2014. All rights reserved.