class WebSocketConnectionPool extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<String,Map<String,WebSocketConnection>> |
pool
1st hash: plugin URI
2nd hash: session ID
|
| Constructor and Description |
|---|
WebSocketConnectionPool() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
add(WebSocketConnection connection) |
(package private) WebSocketConnection |
getConnection(String pluginUri,
String sessionId) |
(package private) Collection<WebSocketConnection> |
getConnections(String pluginUri)
Returns the open WebSocket connections associated to the given plugin, or
null if there are none. |
(package private) void |
remove(WebSocketConnection connection) |
WebSocketConnectionPool()
Collection<WebSocketConnection> getConnections(String pluginUri)
null if there are none.WebSocketConnection getConnection(String pluginUri, String sessionId)
void add(WebSocketConnection connection)
void remove(WebSocketConnection connection)
Copyright © 2018. All Rights Reserved.