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

com.base4j.j2cache.redis.support.RedisClientFactory Maven / Gradle / Ivy

The newest version!
package com.base4j.j2cache.redis.support;

import com.base4j.j2cache.redis.client.RedisClient;

import java.io.Closeable;

/**
 * @author zhangyw
 * @ClassName PoolFactory
 * @Description
 * @date 16/11/25 09:42
 */
public interface RedisClientFactory extends Closeable {

    void build();

    /**
     * 在 大并发情况下,实现类的getResource 方法,
     * 务必 加上 synchronized 关键子,
     * 保证 resource 的一致性
     *
     * @return
     */
    C getResource();

    void returnResource(C client);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy