public class SseStreamListener extends AbstractStreamListener
| Modifier and Type | Field and Description |
|---|---|
(package private) org.springframework.web.servlet.mvc.method.annotation.SseEmitter |
sseEmitter |
lastMessage, onComplete| Constructor and Description |
|---|
SseStreamListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Throwable throwable,
String response)
Called when an error occurs.
|
void |
onMsg(String message)
Called when a new message is received.
|
onClosed, onEvent, onFailure, onOpenfinal org.springframework.web.servlet.mvc.method.annotation.SseEmitter sseEmitter
public void onMsg(String message)
AbstractStreamListeneronMsg in class AbstractStreamListenermessage - the new messagepublic void onError(Throwable throwable, String response)
AbstractStreamListeneronError in class AbstractStreamListenerthrowable - the throwable that caused the errorresponse - the response associated with the error, if anyCopyright © 2024. All rights reserved.