Class MemoryWebSocketStore
- java.lang.Object
-
- org.apache.camel.component.atmosphere.websocket.MemoryWebSocketStore
-
- All Implemented Interfaces:
AutoCloseable
,WebSocketStore
,org.apache.camel.Service
public class MemoryWebSocketStore extends Object implements WebSocketStore
-
-
Constructor Summary
Constructors Constructor Description MemoryWebSocketStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWebSocket(String connectionKey, org.atmosphere.websocket.WebSocket websocket)
Collection<org.atmosphere.websocket.WebSocket>
getAllWebSockets()
String
getConnectionKey(org.atmosphere.websocket.WebSocket websocket)
org.atmosphere.websocket.WebSocket
getWebSocket(String connectionKey)
void
removeWebSocket(String connectionKey)
void
removeWebSocket(org.atmosphere.websocket.WebSocket websocket)
void
start()
void
stop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.camel.Service
-
addWebSocket
public void addWebSocket(String connectionKey, org.atmosphere.websocket.WebSocket websocket)
- Specified by:
addWebSocket
in interfaceWebSocketStore
-
removeWebSocket
public void removeWebSocket(String connectionKey)
- Specified by:
removeWebSocket
in interfaceWebSocketStore
-
removeWebSocket
public void removeWebSocket(org.atmosphere.websocket.WebSocket websocket)
- Specified by:
removeWebSocket
in interfaceWebSocketStore
-
getConnectionKey
public String getConnectionKey(org.atmosphere.websocket.WebSocket websocket)
- Specified by:
getConnectionKey
in interfaceWebSocketStore
-
getWebSocket
public org.atmosphere.websocket.WebSocket getWebSocket(String connectionKey)
- Specified by:
getWebSocket
in interfaceWebSocketStore
-
getAllWebSockets
public Collection<org.atmosphere.websocket.WebSocket> getAllWebSockets()
- Specified by:
getAllWebSockets
in interfaceWebSocketStore
-
-