All I found was a single paragraph on the driver overview page. Need more than that , What methods are there? How do i set, update, remove, clear? Examples? Surely there must be something somewhere. I am so tired of searching (and asking) for every little thing I need to do, and only getting bits and pieces of what I really need, which is good doc!
There isn't much special about it. It's a Map. You can use the normal Groovy Map operations. (For a reference, see: Map (Groovy JDK enhancements), though there are better tutorials out there.)
For example, state.remove('myKey')
will remove the myKey
key from state
. (This is not state
-specific.) And state.myKey = 1
will update a value, or create it if doesn't exist -- again, standard Groovy map operations.
The only thing I can think of is atomicState.updateMapValue(Object stateKey, Object key, Object value)
if you're storing another Map as the value of that key, are using atomicState
rather than state
, and want a more convenient way to perform that operation.
Thank you!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.