Java org.springframework.web.servlet.mvc.method.annotation SseEmitter fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.servlet.mvc.method.annotation SseEmitter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.servlet.mvc.method.annotation SseEmitter.

The text is from its open source code.

Subclass

org.springframework.web.servlet.mvc.method.annotation.SseEmitter has subclasses.
Click this link to see all its subclasses.

Constructor

SseEmitter()
Create a new SseEmitter instance.
SseEmitter(Long timeout)
Create a SseEmitter with a custom timeout value.

Method

voidcomplete()
Complete request processing by performing a dispatch into the servlet container, where Spring MVC is invoked once more, and completes the request processing lifecycle.
voidcompleteWithError(Throwable ex)
Complete request processing with an error.
voidonCompletion(Runnable callback)
Register code to invoke when the async request completes.
voidonTimeout(Runnable callback)
Register code to invoke when the async request times out.
voidsend(Object object)
Send the object formatted as a single SSE "data" line.
voidsend(SseEventBuilder builder)
Send an SSE event prepared with the given builder.
voidsend(Object object, @Nullable MediaType mediaType)
Send the object formatted as a single SSE "data" line.