Package | Description |
---|---|
com.comphenix.protocol.utility |
Modifier and Type | Method and Description |
---|---|
SafeCacheBuilder<K,V> |
SafeCacheBuilder.concurrencyLevel(int concurrencyLevel)
Guides the allowed concurrency among update operations.
|
SafeCacheBuilder<K,V> |
SafeCacheBuilder.expireAfterAccess(long duration,
java.util.concurrent.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<K,V> |
SafeCacheBuilder.expireAfterWrite(long duration,
java.util.concurrent.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<K,V> |
SafeCacheBuilder.initialCapacity(int initialCapacity)
Sets the minimum total size for the internal hash tables.
|
SafeCacheBuilder<K,V> |
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.removalListener(com.google.common.cache.RemovalListener<? super K1,? super V1> listener)
Specifies a listener instance, which all caches built using this
CacheBuilder will notify each time an entry is removed from the
cache by any means. |
SafeCacheBuilder<K,V> |
SafeCacheBuilder.softValues()
Specifies that each value (not key) stored in the cache should be wrapped
in a
SoftReference (by default, strong references are used). |
SafeCacheBuilder<K,V> |
SafeCacheBuilder.ticker(com.google.common.base.Ticker ticker)
Specifies a nanosecond-precision time source for use in determining when
entries should be expired.
|
SafeCacheBuilder<K,V> |
SafeCacheBuilder.weakKeys()
Specifies that each key (not value) stored in the cache should be wrapped
in a
WeakReference (by default, strong references are used). |
SafeCacheBuilder<K,V> |
SafeCacheBuilder.weakValues()
Specifies that each value (not key) stored in the cache should be wrapped
in a
WeakReference (by default, strong references are used). |