Class DefaultNodeSynchronization
java.lang.Object
org.apache.camel.component.websocket.DefaultNodeSynchronization
- All Implemented Interfaces:
NodeSynchronization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSocket(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 Details
-
DefaultNodeSynchronization
-
-
Method Details
-
addSocket
Description copied from interface:NodeSynchronizationAdds the web socket to both (always if present) stores.- Specified by:
addSocketin interfaceNodeSynchronization- Parameters:
socket- the web socket
-
removeSocket
Description copied from interface:NodeSynchronizationRemoves the Websocket from both stores- Specified by:
removeSocketin interfaceNodeSynchronization- Parameters:
id- id of the web socket
-
removeSocket
Description copied from interface:NodeSynchronizationRemoves the Websocket from both stores- Specified by:
removeSocketin interfaceNodeSynchronization- Parameters:
socket- web socket to remove
-