public abstract class ResolvedTypeCache extends Object implements Serializable
ResolvedType instances.
Since usage pattern is such that caller needs synchronization, cache access methods
are fully synchronized so that caller need not do explicit synchronization.| Constructor and Description |
|---|
ResolvedTypeCache() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addForTest(ResolvedType type)
Method only used by test code: do not use otherwise.
|
static ResolvedTypeCache |
concurrentCache(int maxEntries) |
abstract ResolvedType |
find(ResolvedTypeKey key) |
ResolvedTypeKey |
key(Class<?> simpleType)
Helper method for constructing reusable cache keys
|
ResolvedTypeKey |
key(Class<?> simpleType,
ResolvedType[] tp)
Helper method for constructing reusable cache keys
|
static ResolvedTypeCache |
lruCache(int maxEntries) |
abstract void |
put(ResolvedTypeKey key,
ResolvedType type) |
abstract int |
size() |
public static ResolvedTypeCache lruCache(int maxEntries)
public static ResolvedTypeCache concurrentCache(int maxEntries)
public ResolvedTypeKey key(Class<?> simpleType)
public ResolvedTypeKey key(Class<?> simpleType, ResolvedType[] tp)
public abstract ResolvedType find(ResolvedTypeKey key)
public abstract int size()
public abstract void put(ResolvedTypeKey key, ResolvedType type)
protected void _addForTest(ResolvedType type)
Copyright © 2019 fasterxml.com. All rights reserved.