Interface SseEvent<T>
public interface SseEvent<T>
Represents the entire SSE response from the server
-
Method Summary
-
Method Details
-
id
String id()Get event identifier.Contains value of SSE
"id"field. This field is optional. Method may returnnull, if the event identifier is not specified.- Returns:
- event id.
-
name
String name()Get event name.Contains value of SSE
"event"field. This field is optional. Method may returnnull, if the event name is not specified.- Returns:
- event name, or
nullif not set.
-
comment
String comment()Get a comment string that accompanies the event.Contains value of the comment associated with SSE event. This field is optional. Method may return
null, if the event comment is not specified.- Returns:
- comment associated with the event.
-
data
T data()Get event data.
-