Package org.cyclos.impl.utils
Interface LocalStorage<K,V>
-
- All Superinterfaces:
Storage<K,V,Function<K,V>,BiPredicate<K,V>>
- All Known Implementing Classes:
GuavaLocalStorage
public interface LocalStorage<K,V> extends Storage<K,V,Function<K,V>,BiPredicate<K,V>>
AStorageto be used locally. When in a cluster, each node will have its local copy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRemoveListener(BiConsumer<K,V> listener)Adds a listener called whenever a value is removedVget(K key, Callable<V> producer)Returns the value associated with the given key, or producing a new one if none exists.
-