Class MappableDistributedCacheManager<K extends java.io.Serializable,​V extends DistributedCacheObject>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​V> mapInstance
      (Distributed) map instances that holds the data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String buildKey​(K key)
      Build key.
      void clear()  
      boolean contains​(K key)  
      java.util.Collection<V> findAll​(java.util.function.Predicate<V> filter)  
      V get​(K key)  
      java.util.Collection<V> getAll()  
      org.apereo.cas.util.cache.DistributedCacheManager<K,​V,​PublisherIdentifier> remove​(K key, V item, boolean publish)  
      org.apereo.cas.util.cache.DistributedCacheManager<K,​V,​PublisherIdentifier> set​(K key, V item, boolean publish)  
      org.apereo.cas.util.cache.DistributedCacheManager<K,​V,​PublisherIdentifier> update​(K key, V item, boolean publish)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.util.cache.DistributedCacheManager

        find, getName
    • Field Detail

      • mapInstance

        protected final java.util.Map<java.lang.String,​V extends DistributedCacheObject> mapInstance
        (Distributed) map instances that holds the data.
    • Constructor Detail

      • MappableDistributedCacheManager

        public MappableDistributedCacheManager()
    • Method Detail

      • get

        public V get​(K key)
      • getAll

        public java.util.Collection<V> getAll()
      • set

        @CanIgnoreReturnValue
        public org.apereo.cas.util.cache.DistributedCacheManager<K,​V,​PublisherIdentifier> set​(K key,
                                                                                                          V item,
                                                                                                          boolean publish)
      • clear

        public void clear()
      • contains

        public boolean contains​(K key)
      • update

        @CanIgnoreReturnValue
        public org.apereo.cas.util.cache.DistributedCacheManager<K,​V,​PublisherIdentifier> update​(K key,
                                                                                                             V item,
                                                                                                             boolean publish)
      • remove

        @CanIgnoreReturnValue
        public org.apereo.cas.util.cache.DistributedCacheManager<K,​V,​PublisherIdentifier> remove​(K key,
                                                                                                             V item,
                                                                                                             boolean publish)
      • findAll

        public java.util.Collection<V> findAll​(java.util.function.Predicate<V> filter)
      • buildKey

        protected java.lang.String buildKey​(K key)
        Build key.
        Parameters:
        key - the key
        Returns:
        the string