Class DefaultNodeSynchronization
java.lang.Object
org.apache.camel.component.websocket.DefaultNodeSynchronization
- All Implemented Interfaces:
NodeSynchronization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSocket
(DefaultWebsocket socket) Adds the web socket to both (always if present) stores.void
removeSocket
(String id) Removes the Websocket from both storesvoid
removeSocket
(DefaultWebsocket socket) Removes the Websocket from both stores
-
Constructor Details
-
DefaultNodeSynchronization
-
-
Method Details
-
addSocket
Description copied from interface:NodeSynchronization
Adds the web socket to both (always if present) stores.- Specified by:
addSocket
in interfaceNodeSynchronization
- Parameters:
socket
- the web socket
-
removeSocket
Description copied from interface:NodeSynchronization
Removes the Websocket from both stores- Specified by:
removeSocket
in interfaceNodeSynchronization
- Parameters:
id
- id of the web socket
-
removeSocket
Description copied from interface:NodeSynchronization
Removes the Websocket from both stores- Specified by:
removeSocket
in interfaceNodeSynchronization
- Parameters:
socket
- web socket to remove
-