public static interface TypePool.CacheProvider
TypePool.| Modifier and Type | Interface and Description |
|---|---|
static class |
TypePool.CacheProvider.Discriminating
A discriminating cache provider that delegates a type name to one of two caches.
|
static class |
TypePool.CacheProvider.NoOp
A non-operational cache that does not store any type descriptions.
|
static class |
TypePool.CacheProvider.Simple
A simple, thread-safe type cache based on a
ConcurrentHashMap. |
| Modifier and Type | Field and Description |
|---|---|
static TypePool.Resolution |
UNRESOLVED
The value that is returned on a cache-miss.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this cache.
|
TypePool.Resolution |
find(String name)
Attempts to find a resolution in this cache.
|
TypePool.Resolution |
register(String name,
TypePool.Resolution resolution)
Registers a resolution in this cache.
|
@MaybeNull static final TypePool.Resolution UNRESOLVED
@MaybeNull TypePool.Resolution find(String name)
name - The name of the type to describe.null if no such resolution can be found in the cache.TypePool.Resolution register(String name, TypePool.Resolution resolution)
name - The name of the type that is to be registered.resolution - The resolution to register.void clear()
Copyright © 2014–2025. All rights reserved.