public class DefaultNodeSynchronization extends Object implements NodeSynchronization
Constructor and Description |
---|
DefaultNodeSynchronization(WebsocketStore memoryStore) |
Modifier and Type | Method and Description |
---|---|
void |
addSocket(DefaultWebsocket socket)
Adds the web socket to both (always if present) stores.
|
void |
removeSocket(DefaultWebsocket socket)
Removes the Websocket from both stores
|
void |
removeSocket(String id)
Removes the Websocket from both stores
|
public DefaultNodeSynchronization(WebsocketStore memoryStore)
public void addSocket(DefaultWebsocket socket)
NodeSynchronization
addSocket
in interface NodeSynchronization
socket
- the web socketpublic void removeSocket(String id)
NodeSynchronization
removeSocket
in interface NodeSynchronization
id
- id of the web socketpublic void removeSocket(DefaultWebsocket socket)
NodeSynchronization
removeSocket
in interface NodeSynchronization
socket
- web socket to removeApache Camel