public class MemoryWebsocketStore extends ConcurrentHashMap<String,DefaultWebsocket> implements WebsocketStore
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MemoryWebsocketStore() |
Modifier and Type | Method and Description |
---|---|
void |
add(DefaultWebsocket ws) |
DefaultWebsocket |
get(String key) |
Collection<DefaultWebsocket> |
getAll() |
void |
remove(DefaultWebsocket ws) |
void |
remove(String key) |
void |
start() |
void |
stop() |
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
clone, equals, hashCode, toString
public void add(DefaultWebsocket ws)
add
in interface WebsocketStore
public void remove(DefaultWebsocket ws)
remove
in interface WebsocketStore
public void remove(String key)
remove
in interface WebsocketStore
public DefaultWebsocket get(String key)
get
in interface WebsocketStore
public Collection<DefaultWebsocket> getAll()
getAll
in interface WebsocketStore
public void start() throws Exception
start
in interface org.apache.camel.Service
Exception
Apache Camel