public class WebSocketConnectionManager
extends java.lang.Object
Red (ltrnc) |
Red (ltrnc) |
Modifier and Type | Method and Description |
---|---|
static WebSocketConnectionManager |
getInstance()
Get the factory instance, creating a new one if none created yet.
|
void |
newConnection(java.net.URI path,
WebSocketService service)
Return a new, unshared connection.
|
void |
releaseConnection(java.net.URI path,
WebSocketService service)
Release access to a websocket connection.
|
void |
requestConnection(java.net.URI path,
WebSocketService service)
Set a connection if one has already been established for the
given path; return null otherwise.
|
public static WebSocketConnectionManager getInstance()
public void newConnection(java.net.URI path, WebSocketService service) throws IllegalActionException
path
- The URL to connect to.service
- The WebSocketService requesting the connection.IllegalActionException
public void requestConnection(java.net.URI path, WebSocketService service) throws IllegalActionException
path
- The path to which the connection is established.IllegalActionException
#releaseConnection(WebSocketService)
public void releaseConnection(java.net.URI path, WebSocketService service)
path
- The path of the service.service
- Theservice requesting release.