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:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(DefaultWebsocket ws) getAll()
void
void
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
build, close, init
-
Constructor Details
-
MemoryWebsocketStore
public MemoryWebsocketStore()
-
-
Method Details
-
add
- Specified by:
add
in interfaceWebsocketStore
-
remove
- Specified by:
remove
in interfaceWebsocketStore
-
remove
- Specified by:
remove
in interfaceWebsocketStore
-
get
- Specified by:
get
in interfaceWebsocketStore
-
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
-