Class ConcurrentSingleFlightCache<K,C,V>

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.cache.ConcurrentSingleFlightCache<K,C,V>

public class ConcurrentSingleFlightCache<K,C,V> extends Object
  • Constructor Details

    • ConcurrentSingleFlightCache

      public ConcurrentSingleFlightCache(int capacity, int concurrencyLevel, @Nonnull Function<K,K> copyKey, @Nonnull BiFunction<K,C,V> computeValue, @Nullable BiConsumer<K,V> destroyer)
  • Method Details

    • get

      @Nullable public V get(@Nonnull K key, @Nonnull C context)
    • clear

      public void clear()