org.apache.camel.component.websocket
Class DefaultNodeSynchronization
java.lang.Object
org.apache.camel.component.websocket.DefaultNodeSynchronization
- All Implemented Interfaces:
- NodeSynchronization
public class DefaultNodeSynchronization
- extends Object
- implements NodeSynchronization
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNodeSynchronization
public DefaultNodeSynchronization(WebsocketStore memoryStore)
addSocket
public void addSocket(DefaultWebsocket socket)
- Description copied from interface:
NodeSynchronization
- Adds the web socket to both (always if present) stores.
- Specified by:
addSocket
in interface NodeSynchronization
- Parameters:
socket
- the web socket
removeSocket
public void removeSocket(String id)
- Description copied from interface:
NodeSynchronization
- Removes the Websocket from both stores
- Specified by:
removeSocket
in interface NodeSynchronization
- Parameters:
id
- id of the web socket
removeSocket
public void removeSocket(DefaultWebsocket socket)
- Description copied from interface:
NodeSynchronization
- Removes the Websocket from both stores
- Specified by:
removeSocket
in interface NodeSynchronization
- Parameters:
socket
- web socket to remove
Apache Camel