|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.protocol.ws.api.SimpleWebSocketConnectionRegistry
public class SimpleWebSocketConnectionRegistry
A registry that keeps all currently opened web socket connections in maps in Application's meta data. TODO remove the synchronizations below and use ConcurrentMap#putIfAbsent()
| Constructor Summary | |
|---|---|
SimpleWebSocketConnectionRegistry()
|
|
| Method Summary | |
|---|---|
IWebSocketConnection |
getConnection(Application application,
String sessionId,
Integer pageId)
|
Collection<IWebSocketConnection> |
getConnections(Application application)
Returns a collection of currently active websockets. |
void |
removeConnection(Application application,
String sessionId,
Integer pageId)
Removes a web socket connection from the registry at the specified coordinates (application+session+page) |
void |
setConnection(Application application,
String sessionId,
Integer pageId,
IWebSocketConnection connection)
Adds a new connection into the registry at the specified coordinates (application+session+page) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleWebSocketConnectionRegistry()
| Method Detail |
|---|
public IWebSocketConnection getConnection(Application application,
String sessionId,
Integer pageId)
getConnection in interface IWebSocketConnectionRegistryapplication - the web application to look insessionId - the web socket client session idpageId - the web socket client page id
public Collection<IWebSocketConnection> getConnections(Application application)
getConnections in interface IWebSocketConnectionRegistryapplication -
public void setConnection(Application application,
String sessionId,
Integer pageId,
IWebSocketConnection connection)
IWebSocketConnectionRegistry
setConnection in interface IWebSocketConnectionRegistryapplication - the web application to look insessionId - the web socket client session idpageId - the web socket client page idconnection - the web socket connection to add
public void removeConnection(Application application,
String sessionId,
Integer pageId)
IWebSocketConnectionRegistry
removeConnection in interface IWebSocketConnectionRegistryapplication - the web application to look insessionId - the web socket client session idpageId - the web socket client page id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||