Modifier and Type | Interface and Description |
---|---|
static interface |
OutboundSseEvent.Builder
A builder class used for creating
OutboundSseEvent instances. |
RECONNECT_NOT_SET
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData()
Get event data.
|
java.lang.reflect.Type |
getGenericType()
Get generic data type.
|
MediaType |
getMediaType()
Get
media type of the event data. |
java.lang.Class<?> |
getType()
Get data type.
|
getComment, getId, getName, getReconnectDelay, isReconnectDelaySet
java.lang.Class<?> getType()
This information is used to select a proper MessageBodyWriter
to be used for
serializing the event data
.
null
, if the event does not contain any data.java.lang.reflect.Type getGenericType()
This information is used to select a proper MessageBodyWriter
to be used for
serializing the event data
.
null
, if the event does not contain any data.MediaType getMediaType()
media type
of the event data.
This information is used to a select proper MessageBodyWriter
to be used for
serializing the event data
.
MediaType
.java.lang.Object getData()
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 available MessageBodyWriter
that is selected based on the event
type
, getGenericType()
generic type} and getMediaType()
media type}.
null
, if the event does not contain any data.