Modifier | Constructor and Description |
---|---|
protected |
ThreadLocalCache() |
protected |
ThreadLocalCache(int maxSizePerThread) |
Modifier and Type | Method and Description |
---|---|
V |
get(K key) |
abstract V |
getNewInstance(K key) |
static <K,V> ThreadLocalCache<K,V> |
of(java.util.function.Function<K,V> creator) |
protected ThreadLocalCache()
protected ThreadLocalCache(int maxSizePerThread)
public static <K,V> ThreadLocalCache<K,V> of(java.util.function.Function<K,V> creator)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.