@Immutable
public interface SseEvent
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SseEvent.Builderbuilder()comment()data()default Stringevent()Is ignored when clientIds is not emptyid()jsonView()static SseEventCreates a SseEvent that just contains an event and data.static SseEventCreates a SseEvent that just contains the data.static SseEventCreates a SseEvent that contains an event and an empty stringretry()
-
Field Details
-
DEFAULT_EVENT
- See Also:
-
-
Method Details
-
clientIds
-
excludeClientIds
Is ignored when clientIds is not empty -
jsonView
-
event
-
data
Object data() -
retry
-
id
-
comment
-
ofData
Creates a SseEvent that just contains the data. The data will be converted when it's not a String instance. -
ofEvent
Creates a SseEvent that contains an event and an empty string -
of
Creates a SseEvent that just contains an event and data. The data will be converted when it's not a String instance -
builder
-