Uses of Class
com.comphenix.protocol.utility.SafeCacheBuilder
Packages that use SafeCacheBuilder
-
Uses of SafeCacheBuilder in com.comphenix.protocol.utility
Methods in com.comphenix.protocol.utility that return SafeCacheBuilderModifier and TypeMethodDescriptionSafeCacheBuilder.concurrencyLevel(int concurrencyLevel)Guides the allowed concurrency among update operations.SafeCacheBuilder.expireAfterAccess(long duration, TimeUnit unit)Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or last access.SafeCacheBuilder.expireAfterWrite(long duration, TimeUnit unit)Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.SafeCacheBuilder.initialCapacity(int initialCapacity)Sets the minimum total size for the internal hash tables.SafeCacheBuilder.maximumSize(int size)Specifies the maximum number of entries the cache may contain.static <K, V> SafeCacheBuilder<K,V>SafeCacheBuilder.newBuilder()Construct a new safe cache builder.<K1 extends K, V1 extends V>
SafeCacheBuilder<K1,V1>SafeCacheBuilder.removalListener(com.google.common.cache.RemovalListener<? super K1,? super V1> listener)Specifies a listener instance, which all caches built using thisCacheBuilderwill notify each time an entry is removed from the cache by any means.SafeCacheBuilder.softValues()Specifies that each value (not key) stored in the cache should be wrapped in aSoftReference(by default, strong references are used).SafeCacheBuilder.ticker(com.google.common.base.Ticker ticker)Specifies a nanosecond-precision time source for use in determining when entries should be expired.SafeCacheBuilder.weakKeys()Specifies that each key (not value) stored in the cache should be wrapped in aWeakReference(by default, strong references are used).SafeCacheBuilder.weakValues()Specifies that each value (not key) stored in the cache should be wrapped in aWeakReference(by default, strong references are used).