Local maps can be used to share data safely in a single Vert.x instance.
The map only allows immutable keys and values in the map, OR certain mutable objects such as Buffer instances which will be copied when they are added to the map.
This ensures there is no shared access to mutable state from different threads (e.g. different event loops) in the Vert.x instance, and means you don't have to protect access to that state using synchronization or locks.
Anything
Object
LocalMap
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
LocalMap(LocalMap<out Object,out Object> unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Inherited Methods |
Methods inherited from: Object equals |