Class SseEvent
java.lang.Object
io.helidon.http.sse.SseEvent
An SSE event.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SseEvent.Builderbuilder()Creates builder for this class.comment()Get optional comment for this event.static SseEventCreates a new SSE event with data.static SseEventCreates a new SSE event with data and media type.data()Get data for this event.<T> TGet data for this event as type T.<T> TGet data for this event as type T.id()Get optional ID for this event.Get optional media context for this event.Get optional media type for this event.name()Get optional name for this event.Get optional reconnect for this event.
-
Field Details
-
NO_DATA
-
-
Method Details
-
create
-
create
-
builder
-
data
-
data
-
data
Get data for this event as type T. Uses media support to convert event data to type T.- Type Parameters:
T- the converted type- Parameters:
clazz- the class- Returns:
- the converted data
-
mediaType
-
mediaContext
Get optional media context for this event. If the media type is specified here, it will be used for deserialization purposes.- Returns:
- the media type
- See Also:
-
id
-
name
-
comment
-
reconnectMillis
-