Package jakarta.ws.rs.sse
Interface OutboundSseEvent
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceOutboundSseEvent.BuilderA builder class used for creatingOutboundSseEventinstances.
 - 
Field Summary- 
Fields inherited from interface jakarta.ws.rs.sse.SseEventRECONNECT_NOT_SET
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetData()Get event data.TypegetGenericType()Get generic data type.MediaTypegetMediaType()Getmedia typeof the event data.Class<?>getType()Get data type.- 
Methods inherited from interface jakarta.ws.rs.sse.SseEventgetComment, getId, getName, getReconnectDelay, isReconnectDelaySet
 
- 
 
- 
- 
- 
Method Detail- 
getTypeClass<?> getType() Get data type.This information is used to select a proper MessageBodyWriterto be used for serializing theevent data.- Returns:
- data type. May return null, if the event does not contain any data.
 
 - 
getGenericTypeType getGenericType() Get generic data type.This information is used to select a proper MessageBodyWriterto be used for serializing theevent data.- Returns:
- generic data type. May return null, if the event does not contain any data.
 
 - 
getMediaTypeMediaType getMediaType() Getmedia typeof the event data.This information is used to a select proper MessageBodyWriterto be used for serializing theevent data.- Returns:
- data MediaType.
 
 - 
getDataObject getData() Get event data.The event data, if specified, are serialized and sent as one or more SSE event "data"fields (depending on the line breaks in the actual serialized data content). The data are serialized using an availableMessageBodyWriterthat is selected based on the eventtype,getGenericType()generic type} andgetMediaType()media type}.- Returns:
- event data. May return null, if the event does not contain any data.
 
 
- 
 
-