Interface EventSource.Event<D>
- All Known Implementing Classes:
HttpClient.EventImpl
- Enclosing interface:
EventSource<D>
public static interface EventSource.Event<D>
A single Server Sent Event, received from peer.
-
Method Summary
-
Method Details
-
isEmpty
boolean isEmpty()No name, id and data in event ( only comment )- Returns:
- true, if the event has no name, id and data. false, otherwise
-
name
-
id
String id()an SSE event id. this can be used to request events starting from specified- Returns:
- the event id
- See Also:
-
data
-
comment
-