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 voidaddWebSocket(String connectionKey, org.atmosphere.websocket.WebSocket websocket)Collection<org.atmosphere.websocket.WebSocket>getAllWebSockets()StringgetConnectionKey(org.atmosphere.websocket.WebSocket websocket)org.atmosphere.websocket.WebSocketgetWebSocket(String connectionKey)voidremoveWebSocket(String connectionKey)voidremoveWebSocket(org.atmosphere.websocket.WebSocket websocket)voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.camel.Service
-
addWebSocket
public void addWebSocket(String connectionKey, org.atmosphere.websocket.WebSocket websocket)
- Specified by:
addWebSocketin interfaceWebSocketStore
-
removeWebSocket
public void removeWebSocket(String connectionKey)
- Specified by:
removeWebSocketin interfaceWebSocketStore
-
removeWebSocket
public void removeWebSocket(org.atmosphere.websocket.WebSocket websocket)
- Specified by:
removeWebSocketin interfaceWebSocketStore
-
getConnectionKey
public String getConnectionKey(org.atmosphere.websocket.WebSocket websocket)
- Specified by:
getConnectionKeyin interfaceWebSocketStore
-
getWebSocket
public org.atmosphere.websocket.WebSocket getWebSocket(String connectionKey)
- Specified by:
getWebSocketin interfaceWebSocketStore
-
getAllWebSockets
public Collection<org.atmosphere.websocket.WebSocket> getAllWebSockets()
- Specified by:
getAllWebSocketsin interfaceWebSocketStore
-
-