Class Cache.Deferred<K,V>

java.lang.Object
org.apache.sis.util.collection.Cache.Deferred<K,V>
Enclosing class:
Cache<K,V>

private static final class Cache.Deferred<K,V> extends Object
Key-value pairs of new entries created during Cache.ReplaceAdapter execution, as a chained list. Calls to Cache.notifyChange(Object, Object) for those entries need to be deferred until operation on Cache.map completed because Cache.adjustReferences(Object, Object) needs the new values to be present in the map.
  • Field Details

    • key

      private final K key
    • value

      private final V value
    • next

      private final Cache.Deferred<K,V> next
  • Constructor Details

    • Deferred

      Deferred(K key, V value, Cache.Deferred<K,V> next)
      Creates a new notification to be sent after the Cache.map operation completed.
  • Method Details

    • notifyChanges

      static <K, V> void notifyChanges(Cache<K,V> cache, Cache.Deferred<K,V> entry)
      Sends all deferred notifications, starting with the given one.