Top Description Methods
org.jooq

public Interface CacheProvider

Known Direct Implementers
org.jooq.impl.DefaultCacheProvider
Annotations
@FunctionalInterface
Imports
java.util.Collections, .Map, java.util.concurrent.ConcurrentMap, org.jooq.impl.CacheType, org.jetbrains.annotations.Nullable

A provider for cache implementations to replace the default.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @Nullable Map<Object, Object>
provide(CacheContext context)

Provide a thread safe map for the given CacheType.

Method Detail

provideback to summary
public @Nullable Map<Object, Object> provide(CacheContext context)

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
@Nullable