Package ratpack.core.sse
Interface ServerSentEvent
-
public interface ServerSentEvent
A server sent event.- Since:
- 1.10
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ServerSentEventBuilder
builder()
Creates a builder for an event.String
getComment()
The “comment” value of the event.String
getData()
The “data” value of the event.String
getEvent()
The “event” value of the event.String
getId()
The “id” value of the event.
-
-
-
Method Detail
-
builder
static ServerSentEventBuilder builder()
Creates a builder for an event.- Returns:
- a builder for an event
-
getEvent
@Nullable String getEvent()
The “event” value of the event.- Returns:
- the “event” value of the event
-
getData
@Nullable String getData()
The “data” value of the event.- Returns:
- the “data” value of the event
-
-