| 程序包 | 说明 |
|---|---|
| com.github.netty.core.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static ConcurrentLinkedHashMap.Weigher<byte[]> |
ConcurrentLinkedHashMap.Weighers.byteArray()
A weigher where the value is a byte array and its weight is the number of
bytes.
|
static <E> ConcurrentLinkedHashMap.Weigher<? super Collection<E>> |
ConcurrentLinkedHashMap.Weighers.collection()
A weigher where the value is a
Collection and its weight is the
number of elements. |
static <E> ConcurrentLinkedHashMap.Weigher<? super Iterable<E>> |
ConcurrentLinkedHashMap.Weighers.iterable()
A weigher where the value is a
Iterable and its weight is the
number of elements. |
static <E> ConcurrentLinkedHashMap.Weigher<? super List<E>> |
ConcurrentLinkedHashMap.Weighers.list()
A weigher where the value is a
List and its weight is the number
of elements. |
static <A,B> ConcurrentLinkedHashMap.Weigher<? super Map<A,B>> |
ConcurrentLinkedHashMap.Weighers.map()
A weigher where the value is a
Map and its weight is the number of
entries. |
static <E> ConcurrentLinkedHashMap.Weigher<? super Set<E>> |
ConcurrentLinkedHashMap.Weighers.set()
A weigher where the value is a
Set and its weight is the number
of elements. |
static <V> ConcurrentLinkedHashMap.Weigher<V> |
ConcurrentLinkedHashMap.Weighers.singleton()
A weigher where a value has a weight of 1.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> ConcurrentLinkedHashMap.EntryWeigher<K,V> |
ConcurrentLinkedHashMap.Weighers.asEntryWeigher(ConcurrentLinkedHashMap.Weigher<? super V> weigher)
A entry weigher backed by the specified weigher.
|
ConcurrentLinkedHashMap.Builder<K,V> |
ConcurrentLinkedHashMap.Builder.weigher(ConcurrentLinkedHashMap.Weigher<? super V> weigher)
Specifies an algorithm to determine how many the units of capacity a
value consumes.
|
| 构造器和说明 |
|---|
ExpiryLRUMap(int initialCapacity,
long maxCacheSize,
long defaultExpiryTime,
ConcurrentLinkedHashMap.Weigher<ExpiryLRUMap.Node<K,V>> weigher) |
ExpiryLRUMap(int initialCapacity,
long maxCacheSize,
long defaultExpiryTime,
ConcurrentLinkedHashMap.Weigher<ExpiryLRUMap.Node<K,V>> weigher,
Class<? extends Reference> referenceType) |
Copyright © 2021. All rights reserved.