Class TimeoutCache<K,V>
java.lang.Object
com.hypixel.hytale.server.worldgen.util.cache.TimeoutCache<K,V>
- All Implemented Interfaces:
Cache<K,V>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Cleaner.Cleanableprivate final BiConsumer<K, V> private final ScheduledFuture<?> private final Map<K, TimeoutCache.CacheEntry<V>> private final long -
Constructor Summary
ConstructorsConstructorDescriptionTimeoutCache(long expire, TimeUnit unit, Function<K, V> func, BiConsumer<K, V> destroyer) -
Method Summary
-
Field Details
-
map
-
timeout
private final long timeout -
func
-
destroyer
-
future
-
cleanable
-
-
Constructor Details
-
TimeoutCache
-
-
Method Details