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, valuesclone, equals, hashCode, toStringpublic void add(DefaultWebsocket ws)
add in interface WebsocketStorepublic void remove(DefaultWebsocket ws)
remove in interface WebsocketStorepublic void remove(String key)
remove in interface WebsocketStorepublic DefaultWebsocket get(String key)
get in interface WebsocketStorepublic Collection<DefaultWebsocket> getAll()
getAll in interface WebsocketStorepublic void start()
throws Exception
start in interface org.apache.camel.ServiceExceptionApache Camel