Class ServiceCache<K,​V>

  • All Implemented Interfaces:
    com.google.common.cache.RemovalListener<org.jabylon.common.util.ServiceKey<K>,​V>

    public class ServiceCache<K,​V>
    extends Object
    implements com.google.common.cache.RemovalListener<org.jabylon.common.util.ServiceKey<K>,​V>
    • Constructor Detail

      • ServiceCache

        public ServiceCache()
    • Method Detail

      • create

        public static <K,​V> ServiceCache<K,​V> create​(com.google.common.cache.CacheLoader<K,​V> loader)
      • onRemoval

        public void onRemoval​(com.google.common.cache.RemovalNotification<org.jabylon.common.util.ServiceKey<K>,​V> arg0)
        Specified by:
        onRemoval in interface com.google.common.cache.RemovalListener<K,​V>
      • getService

        public V getService​(K key)
      • getService

        public V getService​(K key,
                            String filter)
      • getAllServices

        public Collection<V> getAllServices​(K key)