| Package | Description |
|---|---|
| me.busr.jesse |
| Modifier and Type | Method and Description |
|---|---|
protected static SseSession |
SseSessionBuilder.buildSession(javax.servlet.AsyncContext asyncContext,
SseSessionManager manager)
Build a session without keepalive
|
protected static SseSession |
SseSessionBuilder.buildSession(javax.servlet.AsyncContext asyncContext,
SseSessionManager manager,
boolean keepAlive)
Build a session with a keep alive param
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SseSessionManager.broadcastEvent(SseSession[] sessions,
SseEvent event)
Broadcast an event to an array of sessions
|
abstract void |
SseSessionManager.onClose(SseSession session)
A method called during the closing of a session
|
void |
DefaultSessionManager.onClose(SseSession session) |
abstract void |
SseSessionManager.onError(SseSession session)
A method called when there is an error in sending in a session
|
void |
DefaultSessionManager.onError(SseSession session) |
abstract void |
SseSessionManager.onOpen(SseSession session)
A method called when a session is being opened
|
void |
DefaultSessionManager.onOpen(SseSession session) |
static void |
SseSessionManager.pushEvent(SseSession session,
SseEvent event)
Sends an event to a session
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SseSessionManager.broadcastEvent(List<SseSession> sessions,
SseEvent event)
Broadcast an event to a list of sessions
|
static void |
SseSessionManager.broadcastEvent(Set<SseSession> sessions,
SseEvent event)
Broadcast an event to a set of sessions
|
Copyright © 2018. All rights reserved.