Interface WebSocketContainer
- All Known Implementing Classes:
 JettyWebSocketServerContainer, WebSocketClient
public interface WebSocketContainer
Generic interface to the Container (server or client)
- 
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionListener(WebSocketSessionListener listener) Register a WebSocketSessionListener with the containerThe Container provided Executor.Get the collection of open Sessions being tracked by this containervoidNotify the Session Listeners of an event.booleanRemove a WebSocketSessionListener from the container 
- 
Method Details
- 
getExecutor
Executor getExecutor()The Container provided Executor. - 
getOpenSessions
Collection<Session> getOpenSessions()Get the collection of open Sessions being tracked by this container- Returns:
 - the collection of open sessions
 
 - 
addSessionListener
Register a WebSocketSessionListener with the container- Parameters:
 listener- the listener
 - 
removeSessionListener
Remove a WebSocketSessionListener from the container- Parameters:
 listener- the listener- Returns:
 - true if listener was present and removed
 
 - 
notifySessionListeners
Notify the Session Listeners of an event.- Parameters:
 consumer- the consumer to call for each tracked listener
 
 -