-
Book Overview & Buying
-
Table Of Contents
Infinispan data grid platform definitive guide
Infinispan provides several methods of putting data in the cache, such as the standard map operations such as cache.put(...), cache.putAll(...), or cache.putIfAbsent(...) an overloaded form of ConcurrentMap.putIfAbsent(), which only stores the value if no value is stored under the same key.
However, these methods will result in a separate network call for each operation, which is not suitable for scenarios where large amounts of data must be loaded into the data store, especially for caches in replication mode. This is the case, for instance, building a mirror site or importing data to the cache when transaction control is not important.
For these cases, Infinispan provides the ability to batch multiple cache operations through the interface org.infinispan.commons.api.BatchingCache that provides the startBatch() method to start the batch process, and endBatch(boolean) to complete the process.
The Infinispan batching mode allows atomicity and other transactional characteristics, but...
Change the font size
Change margin width
Change background colour