public static interface ServerSentEvent.Spec<T>
ServerSentEvent instances.| Modifier and Type | Method and Description |
|---|---|
ServerSentEvent.Spec<T> |
data(String data)
Specify the event data for the server sent event.
|
ServerSentEvent.Spec<T> |
event(String event)
Specify the event type for the server sent event.
|
T |
getItem()
An object which can support the construction of the server sent event.
|
ServerSentEvent.Spec<T> |
id(String id)
Specify the event id for the server sent event.
|
T getItem()
ServerSentEvent.Spec<T> id(String id)
id - the event idServerSentEvent.Spec<T> event(String event)
event - the event typeServerSentEvent.Spec<T> data(String data)
data - the event data