Package io.vertx.ext.web.codec
Class SseEvent
- java.lang.Object
-
- io.vertx.ext.web.codec.SseEvent
-
@Unstable public class SseEvent extends Object
This represents a Server-Sent Event.- See Also:
- Server-sent events
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdata()Returns the payload of the event.booleanequals(Object o)Stringevent()Returns the type of the event.inthashCode()Stringid()Returns the event id.intretry()Returns the reconnection time.StringtoString()
-
-
-
Constructor Detail
-
SseEvent
public SseEvent()
-
SseEvent
public SseEvent(JsonObject json)
-
SseEvent
public SseEvent(SseEvent other)
-
-
Method Detail
-
id
public String id()
Returns the event id.- Returns:
- the event id.
-
event
public String event()
Returns the type of the event.- Returns:
- the type of the event.
-
data
public String data()
Returns the payload of the event.- Returns:
- the payload of the event.
-
retry
public int retry()
Returns the reconnection time.- Returns:
- the reconnection time.
-
-