Package org.drools.core.common
Interface Storage<K,V>
-
- Type Parameters:
K
-V
-
- All Known Implementing Classes:
MapStorage
public interface Storage<K,V>
This interface represents the minimal abstraction to store data. It might be merged into ObjectStore in the long run. See drools-reliability module for alternative implementations
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
clear()
boolean
containsKey(K key)
default void
flush()
static <K,V>
Storage<K,V>fromMap(java.util.Map<K,V> input)
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)
default boolean
requiresFlush()
int
size()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
containsKey
boolean containsKey(K key)
-
keySet
java.util.Set<K> keySet()
-
values
java.util.Collection<V> values()
-
clear
void clear()
-
size
int size()
-
isEmpty
boolean isEmpty()
-
requiresFlush
default boolean requiresFlush()
-
flush
default void flush()
-
fromMap
static <K,V> Storage<K,V> fromMap(java.util.Map<K,V> input)
-
-