Interface EntryStore<K,V>
- Type Parameters:
K- key typeV- value type
- All Superinterfaces:
EntryLoader<K,V>, MapStore<K, V>
Metadata-aware MapStore extension for values that carry per-entry expiry.
Implementations can persist MetadataAwareValue.expiryEpochMillis()
alongside the value. The inherited value-only MapStore methods are
bridged to never-expiring values for backward compatibility.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable VLoad the value associated withkeyfrom the backing store.loadAll(Collection<? extends K> keys) Load multiple values in one round-trip.default voidPersist a single key/value pair.default voidPersist multiple key/value pairs.default voidstoreAllEntries(Map<? extends K, MetadataAwareValue<V>> entries) voidstoreEntry(K key, MetadataAwareValue<V> value) Methods inherited from interface EntryLoader
loadAllEntries, loadEntryMethods inherited from interface MapStore
delete, deleteAll, loadAllKeys
-
Method Details
-
storeEntry
-
storeAllEntries
-
load
-
loadAll
Description copied from interface:MapStoreLoad multiple values in one round-trip. Default implementation loopsMapStore.load(Object); override for efficiency when the store supports bulk reads. -
store
-
storeAll
Description copied from interface:MapStorePersist multiple key/value pairs. Default implementation loopsMapStore.store(Object, Object); override for efficiency when the store supports bulk writes.
-