org.gcube.informationsystem.publisher.cache
Class RegistryCache

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,List<URI>>
              extended by org.gcube.informationsystem.publisher.cache.RegistryCache
All Implemented Interfaces:
Serializable, Cloneable, Map<String,List<URI>>

public class RegistryCache
extends LinkedHashMap<String,List<URI>>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
RegistryCache(int capacity)
           
 
Method Summary
 List<URI> get(String key)
           
 long getAccessCount()
           
 long getHitCount()
           
protected  boolean removeEldestEntry(Map.Entry eldest)
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

RegistryCache

public RegistryCache(int capacity)
Method Detail

get

public List<URI> get(String key)

removeEldestEntry

protected boolean removeEldestEntry(Map.Entry eldest)
Overrides:
removeEldestEntry in class LinkedHashMap<String,List<URI>>

getAccessCount

public long getAccessCount()

getHitCount

public long getHitCount()


Copyright © 2013. All Rights Reserved.