O'Reilly logo

IBM WebSphere eXtreme Scale 6 by Anthony Chaves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating objects in the grid

Next we'll look at the getForUpdate(Object key) and getAllForUpdate(List keys) methods. These methods present us with the notion that the get(Object key) and getAll(List keys) methods may not get an object that allows updates. This isn't the case. These methods offer different locking semantics than the get methods on the objects they return. On the surface, the getForUpdate(Object key) and getAllForUpdate(List keys) methods behave like their non-ForUpdate counterparts. The getForUpdate(Object key) and getAllForUpdate(List keys) methods return objects managed by a BackingMap.

In a distributed ObjectGrid deployment, many different threads from different processes may try to update an object at about the same time. Updating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required