T - the type of payload, use for the data section of the event.public static interface ReactiveRoutes.ServerSentEvent<T>
The data section of the resulting event is the JSON representation of the result from data().
If event() does not return null, the event section is written with the result as value.
If id() is implemented, the id section uses this value.
| Modifier and Type | Method and Description |
|---|---|
T |
data()
The
data section. |
default String |
event()
The
event section. |
default long |
id()
The
id section. |
default String event()
event section.null, the written event won't have an event sectionT data()
data section.nulldefault long id()
id section.
If not implemented, an automatic id is inserted.Copyright © 2021 JBoss by Red Hat. All rights reserved.