vertx.shareddata documentation
Functions for sharing data between verticles on the same Vert.x instance.
*shared-data*
var
The currently active SharedData instance.
If not bound, the eventbus from vertx.core/*vertx* will be used.
You should only need to bind this for advanced usage.
add!
(add! s & vals)
Adds values to the SharedData set.
s can either be a set returned by get-set, or the name (as a string
or keyword) of a set to be looked up. This mutates the set in
place, returning the set.
clear!
(clear! col)
Clears all values from a SharedData set or map.
col can either be a map/set returned by get-map/get-set, or the
name (as a string or keyword) of a map or set to be looked
up. Throws if col is a name, and a set and map both exist with that
name. This mutates the hash or set in place, returning the hash or
set.
get-map
(get-map name)
Return a map with specific name, using the SharedData instance from vertx.core/*vertx*.
get-set
(get-set name)
Return a Set with specific name, using the SharedData instance from vertx.core/*vertx*.
get-shared-data
(get-shared-data)
Returns the currently active SharedData instance.
put!
(put! m & kvs)
Adds values to the SharedData map.
m can either be a map returned by get-map, or the name (as a string
or keyword) of a map to be looked up. This mutates the map in
place, returning the map.
remove!
(remove! col & vals)
Removes values from a SharedData set or map.
col can either be a map/set returned by get-map/get-set, or the
name (as a string or keyword) of a map or set to be looked
up. Throws if col is a name, and a set and map both exist with that
name. This mutates the hash or set in place, returning the hash or
set.
remove-map
(remove-map name)
Remove the Map with the specific name, using the SharedData instance from vertx.core/*vertx*.
remove-set
(remove-set name)
Remove the Set with the specific name, using the SharedData instance from vertx.core/*vertx*.