All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.atomic.FineGrainedAtomicMap Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.atomic;

import java.util.Map;

/**
 * FineGrainedAtomicMap is a special type of Map geared for use in Infinispan. In addition to the properties
 * of {@link AtomicMap}, locking and isolation is applied on keys rather than entire map itself.
 *
 * Usage
 * 

* FineGrainedAtomicMap should be constructed and "registered" with Infinispan using the {@link AtomicMapLookup} helper. This * helper ensures thread safe construction and registration of AtomicMap instances in Infinispan's data container. E.g.: *
* * FineGrainedAtomicMap<String, Integer> map = AtomicMapLookup.getFineGrainedAtomicMap(cache, "my_atomic_map_key"); * *

*

* This interface, for all practical purposes, is just a marker interface that indicates that maps of this type will * be locked atomically in the cache and replicated in a fine grained manner, as it does not add any additional methods * to {@link java.util.Map}. *

* * @author Vladimir Blagojevic * @see AtomicMapLookup * @see AtomicMap * @since 5.1 */ public interface FineGrainedAtomicMap extends Map { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy