Module io.inverno.mod.http.server
Package io.inverno.mod.http.server
Interface ResponseBody.Sse.Event<A>
- Type Parameters:
A
- the type of data sent in the event
- All Superinterfaces:
OutboundData<A>
- All Known Subinterfaces:
WebResponseBody.SseEncoder.Event<A>
- Enclosing interface:
ResponseBody.Sse<A,
B extends ResponseBody.Sse.Event<A>, C extends ResponseBody.Sse.EventFactory<A, B>>
Represents a server-sent event.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionSets the event comment.Sets the type of event.Sets the event id.Methods inherited from interface io.inverno.mod.http.base.OutboundData
stream, value
-
Method Details
-
id
Sets the event id.
- Parameters:
id
- an id- Returns:
- the event
-
comment
Sets the event comment.
- Parameters:
comment
- a comment- Returns:
- the event
-
event
Sets the type of event.
- Parameters:
event
- an event type- Returns:
- the event
-