public class AgentCollectionFactory
extends java.lang.Object
implements com.newrelic.agent.bridge.CollectionFactory
| Constructor and Description |
|---|
AgentCollectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> java.util.function.Function<K,V> |
createAccessTimeBasedCache(long ageInSeconds,
int initialCapacity,
java.util.function.Function<K,V> loader) |
<K,V> java.util.Map<K,V> |
createConcurrentTimeBasedEvictionMap(long ageInSeconds)
Create a time based eviction cache in which an entry's age is determined on a last-write basis.
|
<K,V> java.util.Map<K,V> |
createConcurrentWeakKeyedMap() |
<K,V> java.util.function.Function<K,V> |
memorize(java.util.function.Function<K,V> loader,
int maxSize) |
public <K,V> java.util.Map<K,V> createConcurrentWeakKeyedMap()
createConcurrentWeakKeyedMap in interface com.newrelic.agent.bridge.CollectionFactorypublic <K,V> java.util.Map<K,V> createConcurrentTimeBasedEvictionMap(long ageInSeconds)
createConcurrentTimeBasedEvictionMap in interface com.newrelic.agent.bridge.CollectionFactoryageInSeconds - how old, in seconds, a cache entry must be to be evicted after last writepublic <K,V> java.util.function.Function<K,V> memorize(java.util.function.Function<K,V> loader,
int maxSize)
memorize in interface com.newrelic.agent.bridge.CollectionFactorypublic <K,V> java.util.function.Function<K,V> createAccessTimeBasedCache(long ageInSeconds,
int initialCapacity,
java.util.function.Function<K,V> loader)
createAccessTimeBasedCache in interface com.newrelic.agent.bridge.CollectionFactory