default ServerSentEventsBuilder |
ServerSentEventsBuilder.buffered() |
Applies sensible buffering defaults, for low latency.
|
ServerSentEventsBuilder |
ServerSentEventsBuilder.buffered(int numEvents,
int numBytes,
Duration duration) |
Specifies how events should be buffered.
|
static ServerSentEventsBuilder |
ServerSentEvents.builder() |
Creates a builder for an event stream.
|
ServerSentEventsBuilder |
ServerSentEventsBuilder.keepAlive(Duration heartbeatAfterIdleFor) |
Causes a comment to be written every heartbeatAfterIdleFor since the last write, to keep the connection alive.
|
ServerSentEventsBuilder |
ServerSentEventsBuilder.noContentOnEmpty() |
Causes a HTTP 204 No Content response to be rendered if the stream closes before sending any events.
|