Interface RLocalCachedMapReactive<K,V>

Type Parameters:
K - map key
V - map value
All Superinterfaces:
RExpirableReactive, RMapReactive<K,V>, RObjectReactive

public interface RLocalCachedMapReactive<K,V> extends RMapReactive<K,V>
Map object with local entry cache support.

Each instance maintains local cache to achieve fast read operations. Suitable for maps which used mostly for read operations and network roundtrip delays are undesirable.

Author:
Nikita Koksharov
  • Method Details

    • clearLocalCache

      reactor.core.publisher.Mono<Void> clearLocalCache()
      Clears local cache across all instances
      Returns:
      void
    • cachedKeySet

      Set<K> cachedKeySet()
      Returns all keys stored in local cache
      Returns:
      keys
    • cachedValues

      Collection<V> cachedValues()
      Returns all values stored in local cache
      Returns:
      values
    • cachedEntrySet

      Set<Map.Entry<K,V>> cachedEntrySet()
      Returns all map entries stored in local cache
      Returns:
      entries
    • getCachedMap

      Map<K,V> getCachedMap()
      Returns state of local cache
      Returns:
      map