Class MemoryWebsocketStore
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<String,DefaultWebsocket>
-
- org.apache.camel.component.websocket.MemoryWebsocketStore
-
- All Implemented Interfaces:
Serializable,AutoCloseable,ConcurrentMap<String,DefaultWebsocket>,Map<String,DefaultWebsocket>,WebsocketStore,org.apache.camel.Service
public class MemoryWebsocketStore extends ConcurrentHashMap<String,DefaultWebsocket> implements WebsocketStore
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description MemoryWebsocketStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(DefaultWebsocket ws)DefaultWebsocketget(String key)Collection<DefaultWebsocket>getAll()voidremove(String key)voidremove(DefaultWebsocket ws)voidstart()voidstop()-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
-
Methods inherited from class java.util.AbstractMap
clone
-
-
-
-
Method Detail
-
add
public void add(DefaultWebsocket ws)
- Specified by:
addin interfaceWebsocketStore
-
remove
public void remove(DefaultWebsocket ws)
- Specified by:
removein interfaceWebsocketStore
-
remove
public void remove(String key)
- Specified by:
removein interfaceWebsocketStore
-
get
public DefaultWebsocket get(String key)
- Specified by:
getin interfaceWebsocketStore
-
getAll
public Collection<DefaultWebsocket> getAll()
- Specified by:
getAllin interfaceWebsocketStore
-
start
public void start()
- Specified by:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.camel.Service
-
-