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)
NodeSynchronizationaddSocket in interface NodeSynchronizationsocket - the web socketpublic void removeSocket(String id)
NodeSynchronizationremoveSocket in interface NodeSynchronizationid - id of the web socketpublic void removeSocket(DefaultWebsocket socket)
NodeSynchronizationremoveSocket in interface NodeSynchronizationsocket - web socket to removeApache Camel