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 |
---|---|
Object |
getData()
Get event data.
|
Type |
getGenericType()
Get generic data type.
|
MediaType |
getMediaType()
Get
media type of the event data. |
Class<?> |
getType()
Get data type.
|
getComment, getId, getName, getReconnectDelay, isReconnectDelaySet
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.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
.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.Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.