Package ratpack.sse
Interface ServerSentEvent
-
- All Known Subinterfaces:
Event<T>
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.java.lang.StringgetComment()The “comment” value of the event.java.lang.StringgetData()The “data” value of the event.java.lang.StringgetEvent()The “event” value of the event.java.lang.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
-
getId
@Nullable java.lang.String getId()
The “id” value of the event.- Returns:
- the “id” value of the event
-
getEvent
@Nullable java.lang.String getEvent()
The “event” value of the event.- Returns:
- the “event” value of the event
-
getData
@Nullable java.lang.String getData()
The “data” value of the event.- Returns:
- the “data” value of the event
-
getComment
@Nullable java.lang.String getComment()
The “comment” value of the event.- Returns:
- the “comment” value of the event
-
-