Return a scala.collection.concurrent.Map facade for the internal map
with the specific name
.
Return a scala.collection.concurrent.Map facade for the internal map
with the specific name
. All invocations of this method with the same
value of name
are guaranteed to return the same underlying internal
map instance.
This method converts a Java collection into a Scala collection every time it gets called, so use it sensibly.
Return a scala.collection.mutable.Set facade for the internal set
with the specific name
.
Return a scala.collection.mutable.Set facade for the internal set
with the specific name
. All invocations of this method with the same
value of name
are guaranteed to return the same underlying internal
set instance.
This method converts a Java collection into a Scala collection every time it gets called, so use it sensibly.
Remove the Map
with the specific name
.
Remove the Set
with the specific name
.
Sometimes it is desirable to share immutable data between different event loops, for example to implement a cache of data.
This class allows instances of shared data structures to be looked up and used from different event loops.
The data structures themselves will only allow certain data types to be stored into them. This shields you from worrying about any thread safety issues might occur if mutable objects were shared between event loops.
The following types can be stored in a shareddata data structure:
Instances of this class are thread-safe.