Top Description Constructors Methods
org.jooq.impl

pack-priv final Class DefaultCacheProvider

extends Object
implements CacheProvider
Class Inheritance
All Implemented Interfaces
org.jooq.CacheProvider
Static Imports
java.util.Collections.synchronizedMap, org.jooq.impl.Tools.settings, org.jooq.tools.StringUtils.defaultIfNull

A default implementation producing a ConcurrentHashMap in most cases, or a synchronized LRU cache where appropriate.
Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Map<Object, Object>
provide(CacheContext ctx)

Implements org.jooq.CacheProvider.provide.

Provide a thread safe map for the given CacheType.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultCacheProviderback to summary
pack-priv DefaultCacheProvider()

Method Detail

provideback to summary
public Map<Object, Object> provide(CacheContext ctx)

Implements org.jooq.CacheProvider.provide.

Doc from org.jooq.CacheProvider.provide.

Provide a thread safe map for the given CacheType.

Implementations must ensure that the resulting Map is thread safe. Two examples of such thread safe maps are ConcurrentMap or Collections#synchronizedMap(Map).

A null cache effectively turns off caching for the key.

Annotations
@Override