Package ratpack.core.sse
Interface ServerSentEvent
-
public interface ServerSentEventA server sent event.- Since:
- 1.10
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ServerSentEventBuilderbuilder()Creates a builder for an event.StringgetComment()The “comment” value of the event.StringgetData()The “data” value of the event.StringgetEvent()The “event” value of the event.StringgetId()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
-
-