Class InfinispanStorage<K,​V>

  • All Implemented Interfaces:
    org.drools.core.common.Storage<K,​V>

    public class InfinispanStorage<K,​V>
    extends java.lang.Object
    implements org.drools.core.common.Storage<K,​V>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(K key)  
      static <K1,​V1>
      org.drools.core.common.Storage<K1,​V1>
      fromCache​(org.infinispan.commons.api.BasicCache<K1,​V1> cache)  
      V get​(K key)  
      V getOrDefault​(K key, V value)  
      boolean isEmpty()  
      java.util.Set<K> keySet()  
      V put​(K key, V value)  
      void putAll​(java.util.Map<? extends K,​? extends V> otherMap)  
      V remove​(K key)  
      int size()  
      java.util.Collection<V> values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.drools.core.common.Storage

        flush, requiresFlush
    • Method Detail

      • fromCache

        public static <K1,​V1> org.drools.core.common.Storage<K1,​V1> fromCache​(org.infinispan.commons.api.BasicCache<K1,​V1> cache)
      • get

        public V get​(K key)
        Specified by:
        get in interface org.drools.core.common.Storage<K,​V>
      • getOrDefault

        public V getOrDefault​(K key,
                              V value)
        Specified by:
        getOrDefault in interface org.drools.core.common.Storage<K,​V>
      • put

        public V put​(K key,
                     V value)
        Specified by:
        put in interface org.drools.core.common.Storage<K,​V>
      • putAll

        public void putAll​(java.util.Map<? extends K,​? extends V> otherMap)
        Specified by:
        putAll in interface org.drools.core.common.Storage<K,​V>
      • containsKey

        public boolean containsKey​(K key)
        Specified by:
        containsKey in interface org.drools.core.common.Storage<K,​V>
      • remove

        public V remove​(K key)
        Specified by:
        remove in interface org.drools.core.common.Storage<K,​V>
      • clear

        public void clear()
        Specified by:
        clear in interface org.drools.core.common.Storage<K,​V>
      • values

        public java.util.Collection<V> values()
        Specified by:
        values in interface org.drools.core.common.Storage<K,​V>
      • keySet

        public java.util.Set<K> keySet()
        Specified by:
        keySet in interface org.drools.core.common.Storage<K,​V>
      • size

        public int size()
        Specified by:
        size in interface org.drools.core.common.Storage<K,​V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.drools.core.common.Storage<K,​V>