This interface provides basic properties of the Server Sent Event, namely ID, Name, and Comment. It also provides access to the Reconnect delay property.
SseEvent is extended by another two interfaces, InboundSseEvent and
OutboundSseEvent. The main difference is in how are instances created and how the stored
data can be accessed (or provided).
| Modifier and Type | Field and Description |
|---|---|
| public static final long | RECONNECT_NOT_SET
A "reconnection not set" value for the SSE reconnect delay set via SSE event |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: comment associated with the event.Get a comment string that accompanies the event. |
| public String | |
| public String | |
| public long | Returns: reconnection delay in milliseconds orRECONNECT_NOT_SET if no value has been set.Get new connection retry time in milliseconds the event receiver should wait before attempting to reconnect after a connection to the SSE event source is lost. |
| public boolean | Returns: true if new reconnection delay has been set in the event, false otherwise.Check if the connection retry time has been set in the event. |
| RECONNECT_NOT_SET | back to summary |
|---|---|
| public static final long RECONNECT_NOT_SET A "reconnection not set" value for the SSE reconnect delay set via SSE event | |
| getComment | back to summary |
|---|---|
| public String getComment() Get a comment string that accompanies the event.
Contains value of the comment associated with SSE event. This field is optional. Method may return
| |
| getId | back to summary |
|---|---|
| public String getId() Get event identifier.
Contains value of SSE
| |
| getName | back to summary |
|---|---|
| public String getName() Get event name.
Contains value of SSE
| |
| getReconnectDelay | back to summary |
|---|---|
| public long getReconnectDelay() Get new connection retry time in milliseconds the event receiver should wait before attempting to reconnect after a connection to the SSE event source is lost.
Contains value of SSE
| |
| isReconnectDelaySet | back to summary |
|---|---|
| public boolean isReconnectDelaySet() Check if the connection retry time has been set in the event.
| |