org.infinispan.atomic
Class AtomicMapLookup

java.lang.Object
  extended by org.infinispan.atomic.AtomicMapLookup

public class AtomicMapLookup
extends Object

A helper that locates atomic maps within a given cache. This should be the only way AtomicMaps are created/retrieved.

Since:
4.0
Author:
Manik Surtani

Constructor Summary
AtomicMapLookup()
           
 
Method Summary
static
<MK,K,V> AtomicMap<K,V>
getAtomicMap(Cache<?,?> cache, MK key)
          Retrieves an atomic map from a given cache, stored under a given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicMapLookup

public AtomicMapLookup()
Method Detail

getAtomicMap

public static <MK,K,V> AtomicMap<K,V> getAtomicMap(Cache<?,?> cache,
                                                   MK key)
Retrieves an atomic map from a given cache, stored under a given key. If an AtomicMap did not exist, one is created and registered in an atomic fashion.

Type Parameters:
K - key param of the AtomicMap
V - value param of the AtomicMap
Parameters:
cache - underlying cache
Returns:
an AtomicMap

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.