fiftyone.device.example.illustration
Class CachingConfiguration.UaCacheAdaptor<K,V>

java.lang.Object
  extended by fiftyone.device.example.illustration.CachingConfiguration.GuavaCacheAdaptor<K,V>
      extended by fiftyone.device.example.illustration.CachingConfiguration.UaCacheAdaptor<K,V>
All Implemented Interfaces:
ICache<K,V>, ILoadingCache<K,V>
Enclosing class:
CachingConfiguration

public static class CachingConfiguration.UaCacheAdaptor<K,V>
extends CachingConfiguration.GuavaCacheAdaptor<K,V>
implements ILoadingCache<K,V>


Nested Class Summary
 
Nested classes/interfaces inherited from interface fiftyone.mobile.detection.cache.ICache
ICache.Base<K,V>
 
Field Summary
 
Fields inherited from class fiftyone.device.example.illustration.CachingConfiguration.GuavaCacheAdaptor
cache
 
Constructor Summary
CachingConfiguration.UaCacheAdaptor(com.google.common.cache.Cache<K,V> cache)
           
 
Method Summary
 V get(K key)
           
 V get(K key, IValueLoader<K,V> loader)
           
 
Methods inherited from class fiftyone.device.example.illustration.CachingConfiguration.GuavaCacheAdaptor
getCacheMisses, getCacheRequests, getCacheSize, getPercentageMisses, resetCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fiftyone.mobile.detection.cache.ICache
getCacheMisses, getCacheRequests, getCacheSize, getPercentageMisses, resetCache
 

Constructor Detail

CachingConfiguration.UaCacheAdaptor

public CachingConfiguration.UaCacheAdaptor(com.google.common.cache.Cache<K,V> cache)
Method Detail

get

public V get(K key,
             IValueLoader<K,V> loader)
      throws IOException
Specified by:
get in interface ILoadingCache<K,V>
Throws:
IOException

get

public V get(K key)
Specified by:
get in interface ICache<K,V>
Overrides:
get in class CachingConfiguration.GuavaCacheAdaptor<K,V>


Copyright © 2017 51Degrees. All rights reserved.