public class DefaultSessionManager extends SseSessionManager
| Constructor and Description |
|---|
DefaultSessionManager()
The Default implementation of the session manager which simply stores sessions in a hashset
|
| Modifier and Type | Method and Description |
|---|---|
static void |
broadcastEvent(SseEvent event)
send an event to all sessions
|
void |
onClose(SseSession session)
A method called during the closing of a session
|
void |
onError(SseSession session)
A method called when there is an error in sending in a session
|
void |
onOpen(SseSession session)
A method called when a session is being opened
|
broadcastEvent, broadcastEvent, broadcastEvent, getExecutor, pushEventpublic DefaultSessionManager()
public void onClose(SseSession session)
SseSessionManageronClose in class SseSessionManagerpublic void onOpen(SseSession session)
SseSessionManageronOpen in class SseSessionManagerpublic static void broadcastEvent(SseEvent event)
event - public void onError(SseSession session)
SseSessionManageronError in class SseSessionManagerCopyright © 2018. All rights reserved.