Uses of Interface
org.springframework.web.servlet.function.ServerResponse.SseBuilder
Package
Description
Provides the types that make up Spring's functional web framework for Servlet environments.
-
Uses of ServerResponse.SseBuilder in org.springframework.web.servlet.function
Modifier and TypeMethodDescriptionAdd an SSE comment.Add an SSE "event" line.Add an SSE "id" line.ServerResponse.SseBuilder.onComplete
(Runnable onCompletion) Register a callback to be invoked when the SSE request completes.Register a callback to be invoked when an error occurs during SSE processing.Register a callback to be invoked when an SSE request times out.Add an SSE "retry" line.Modifier and TypeMethodDescriptionstatic ServerResponse
ServerResponse.sse
(Consumer<ServerResponse.SseBuilder> consumer) Create a server-sent event response.static ServerResponse
ServerResponse.sse
(Consumer<ServerResponse.SseBuilder> consumer, Duration timeout) Create a server-sent event response.