CacheProvider.
Configuration is builder-based via DefaultCacheProvider.Builder .
Users can either use this class or create their own CacheProvider implementation.
| Modifier and Type | Class and Description |
|---|---|
| public static class | DefaultCacheProvider.
Builder offering fluent factory methods to configure |
| Modifier and Type | Field and Description |
|---|---|
| protected final int | _maxDeserializerCacheSize
Maximum size of the |
| protected final int | _maxSerializerCacheSize
Maximum size of the |
| protected final int | _maxTypeFactoryCacheSize
Maximum size of the |
| private static final DefaultCacheProvider | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | DefaultCacheProvider(int maxDeserializerCacheSize, int maxSerializerCacheSize, int maxTypeFactoryCacheSize)
|
| Modifier and Type | Method and Description |
|---|---|
| protected <K, V> LookupCache | |
| public static DefaultCacheProvider. | |
| public static CacheProvider | |
| public LookupCache | forDeserializerCache(DeserializationConfig config)
Implements com. Method to provide a |
| public LookupCache | forSerializerCache(SerializationConfig config)
Implements com. Method for constructing a |
| public LookupCache | forTypeFactory()
Implements com. Method for constructing a |
| _maxDeserializerCacheSize | back to summary |
|---|---|
| protected final int _maxDeserializerCacheSize Maximum size of the | |
| _maxSerializerCacheSize | back to summary |
|---|---|
| protected final int _maxSerializerCacheSize Maximum size of the
| |
| _maxTypeFactoryCacheSize | back to summary |
|---|---|
| protected final int _maxTypeFactoryCacheSize Maximum size of the
| |
| DEFAULT | back to summary |
|---|---|
| private static final DefaultCacheProvider DEFAULT | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DefaultCacheProvider | back to summary |
|---|---|
| protected DefaultCacheProvider(int maxDeserializerCacheSize, int maxSerializerCacheSize, int maxTypeFactoryCacheSize) | |
| _buildCache | back to summary |
|---|---|
| protected <K, V> LookupCache | |
| builder | back to summary |
|---|---|
public static DefaultCacheProvider.
| |
| defaultInstance | back to summary |
|---|---|
public static CacheProvider defaultInstance()
| |
| forDeserializerCache | back to summary |
|---|---|
| public LookupCache Implements com. Method to provide a
| |
| forSerializerCache | back to summary |
|---|---|
| public LookupCache Implements com. Doc from com. Method for constructing a
| |
| forTypeFactory | back to summary |
|---|---|
| public LookupCache Implements com. Doc from com. Method for constructing a
| |
DefaultCacheProvider, keeping it immutable.
| Modifier and Type | Field and Description |
|---|---|
| private int | _maxDeserializerCacheSize
Maximum Size of the |
| private int | _maxSerializerCacheSize
Maximum Size of the |
| private int | _maxTypeFactoryCacheSize
Maximum Size of the |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public DefaultCacheProvider | Returns: ADefaultCacheProvider instance with the specified configurationConstructs a |
| public DefaultCacheProvider. | Returns: this builderSize for the maxDeserializerCacheSize)LookupCache to use within DeserializerCacheDefine the maximum size of the |
| public DefaultCacheProvider. | Returns: this builderSize for the maxSerializerCacheSize)LookupCache to use within SerializerCacheDefine the maximum size of the Note that specifying a maximum size of zero prevents values from being retained in the cache. |
| public DefaultCacheProvider. | Returns: this builderSize for the maxTypeFactoryCacheSize)LookupCache to use within com.Define the maximum size of the Note that specifying a maximum size of zero prevents values from being retained in the cache. |
| _maxDeserializerCacheSize | back to summary |
|---|---|
| private int _maxDeserializerCacheSize Maximum Size of the | |
| _maxSerializerCacheSize | back to summary |
|---|---|
| private int _maxSerializerCacheSize Maximum Size of the | |
| _maxTypeFactoryCacheSize | back to summary |
|---|---|
| private int _maxTypeFactoryCacheSize Maximum Size of the | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| build | back to summary |
|---|---|
| public DefaultCacheProvider build() Constructs a
| |
| maxDeserializerCacheSize | back to summary |
|---|---|
| public DefaultCacheProvider. Define the maximum size of the Note that specifying a maximum size of zero prevents values from being retained in the cache.
| |
| maxSerializerCacheSize | back to summary |
|---|---|
| public DefaultCacheProvider. Define the maximum size of the Note that specifying a maximum size of zero prevents values from being retained in the cache.
| |
| maxTypeFactoryCacheSize | back to summary |
|---|---|
| public DefaultCacheProvider. Define the maximum size of the Note that specifying a maximum size of zero prevents values from being retained in the cache.
| |