redis.clients.jedis.JedisSocketFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis;
import java.net.Socket;
import redis.clients.jedis.exceptions.JedisConnectionException;
/**
* JedisSocketFactory: responsible for creating socket connections
* from the within the Jedis client, the default socket factory will
* create TCP sockets with the recommended configuration.
*
* You can use a custom JedisSocketFactory for many use cases, such as:
* - a custom address resolver
* - a unix domain socket
* - a custom configuration for you TCP sockets
*/
public interface JedisSocketFactory {
Socket createSocket() throws JedisConnectionException;
}