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 void
add(DefaultWebsocket ws)
DefaultWebsocket
get(String key)
Collection<DefaultWebsocket>
getAll()
void
remove(String key)
void
remove(DefaultWebsocket ws)
void
start()
void
stop()
-
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:
add
in interfaceWebsocketStore
-
remove
public void remove(DefaultWebsocket ws)
- Specified by:
remove
in interfaceWebsocketStore
-
remove
public void remove(String key)
- Specified by:
remove
in interfaceWebsocketStore
-
get
public DefaultWebsocket get(String key)
- Specified by:
get
in interfaceWebsocketStore
-
getAll
public Collection<DefaultWebsocket> getAll()
- Specified by:
getAll
in interfaceWebsocketStore
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.camel.Service
-
-