Class DefaultNodeSynchronization
- java.lang.Object
-
- org.apache.camel.component.websocket.DefaultNodeSynchronization
-
- All Implemented Interfaces:
NodeSynchronization
public class DefaultNodeSynchronization extends Object implements NodeSynchronization
-
-
Constructor Summary
Constructors Constructor Description DefaultNodeSynchronization(WebsocketStore memoryStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSocket(DefaultWebsocket socket)Adds the web socket to both (always if present) stores.voidremoveSocket(String id)Removes the Websocket from both storesvoidremoveSocket(DefaultWebsocket socket)Removes the Websocket from both stores
-
-
-
Constructor Detail
-
DefaultNodeSynchronization
public DefaultNodeSynchronization(WebsocketStore memoryStore)
-
-
Method Detail
-
addSocket
public void addSocket(DefaultWebsocket socket)
Description copied from interface:NodeSynchronizationAdds the web socket to both (always if present) stores.- Specified by:
addSocketin interfaceNodeSynchronization- Parameters:
socket- the web socket
-
removeSocket
public void removeSocket(String id)
Description copied from interface:NodeSynchronizationRemoves the Websocket from both stores- Specified by:
removeSocketin interfaceNodeSynchronization- Parameters:
id- id of the web socket
-
removeSocket
public void removeSocket(DefaultWebsocket socket)
Description copied from interface:NodeSynchronizationRemoves the Websocket from both stores- Specified by:
removeSocketin interfaceNodeSynchronization- Parameters:
socket- web socket to remove
-
-