org.jboss.cache
Class RegionRegistry

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.concurrent.ConcurrentHashMap<Fqn,Region>
          extended by org.jboss.cache.RegionRegistry
All Implemented Interfaces:
Serializable, ConcurrentMap<Fqn,Region>, Map<Fqn,Region>

public class RegionRegistry
extends ConcurrentHashMap<Fqn,Region>

An extension of the ConcurrentHashMap that acts as a container for regions.

Since:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
RegionRegistry()
           
 
Method Summary
 int getLargestFqnLength()
           
 Region put(Fqn f, Region r)
           
 Region putIfAbsent(Fqn f, Region r)
           
 Region replace(Fqn f, Region r)
           
 boolean replace(Fqn f, Region oldR, Region newR)
           
 
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, putAll, remove, remove, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RegionRegistry

public RegionRegistry()
Method Detail

put

public Region put(Fqn f,
                  Region r)
Specified by:
put in interface Map<Fqn,Region>
Overrides:
put in class ConcurrentHashMap<Fqn,Region>

putIfAbsent

public Region putIfAbsent(Fqn f,
                          Region r)
Specified by:
putIfAbsent in interface ConcurrentMap<Fqn,Region>
Overrides:
putIfAbsent in class ConcurrentHashMap<Fqn,Region>

replace

public Region replace(Fqn f,
                      Region r)
Specified by:
replace in interface ConcurrentMap<Fqn,Region>
Overrides:
replace in class ConcurrentHashMap<Fqn,Region>

replace

public boolean replace(Fqn f,
                       Region oldR,
                       Region newR)
Specified by:
replace in interface ConcurrentMap<Fqn,Region>
Overrides:
replace in class ConcurrentHashMap<Fqn,Region>

getLargestFqnLength

public int getLargestFqnLength()


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