All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.jackson.databind.cfg.CacheProvider Maven / Gradle / Ivy

Go to download

Easy Redis Java client and Real-Time Data Platform. Valkey compatible. Sync/Async/RxJava3/Reactive API. Client side caching. Over 50 Redis based Java objects and services: JCache API, Apache Tomcat, Hibernate, Spring, Set, Multimap, SortedSet, Map, List, Queue, Deque, Semaphore, Lock, AtomicLong, Map Reduce, Bloom filter, Scheduler, RPC

There is a newer version: 3.40.2
Show newest version
package com.fasterxml.jackson.databind.cfg;

import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.deser.DeserializerCache;
import com.fasterxml.jackson.databind.util.LookupCache;
import com.fasterxml.jackson.databind.util.TypeKey;

/**
 * Interface that defines API Jackson uses for constructing various internal
 * caches. This allows configuring custom caches and cache configurations.
 * A {@link CacheProvider} instance will be configured through a builder such as
 * {@link com.fasterxml.jackson.databind.json.JsonMapper.Builder#cacheProvider(CacheProvider)}
 *
 * @since 2.16
 */
public interface CacheProvider
    extends java.io.Serializable
{
    /**
     * Method for constructing a {@link LookupCache} instance to be used by
     * {@link DeserializerCache}.
     *
     * @return {@link LookupCache} instance for use by {@link DeserializerCache}.
     */
    LookupCache> forDeserializerCache(DeserializationConfig config);

    /**
     * Method for constructing a {@link LookupCache} instance to be used by
     * {@link com.fasterxml.jackson.databind.ser.SerializerCache}.
     *
     * @return {@link LookupCache} instance for constructing {@link com.fasterxml.jackson.databind.ser.SerializerCache}.
     */
    LookupCache> forSerializerCache(SerializationConfig config);

    /**
     * Method for constructing a {@link LookupCache} instance to be used by
     * {@link com.fasterxml.jackson.databind.type.TypeFactory}.
     *
     * @return {@link LookupCache} instance for constructing {@link com.fasterxml.jackson.databind.type.TypeFactory}.
     */
    LookupCache forTypeFactory();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy