org.apache.camel.component.websocket
Class DefaultNodeSynchronization

java.lang.Object
  extended by org.apache.camel.component.websocket.DefaultNodeSynchronization
All Implemented Interfaces:
NodeSynchronization

public class DefaultNodeSynchronization
extends Object
implements NodeSynchronization


Constructor Summary
DefaultNodeSynchronization(WebsocketStore memoryStore)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNodeSynchronization

public DefaultNodeSynchronization(WebsocketStore memoryStore)
Method Detail

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