Package redis.clients.jedis
Class DefaultJedisSocketFactory
- java.lang.Object
-
- redis.clients.jedis.DefaultJedisSocketFactory
-
- All Implemented Interfaces:
JedisSocketFactory
public class DefaultJedisSocketFactory extends Object implements JedisSocketFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultJedisSocketFactory(String host, int port, int connectionTimeout, int soTimeout, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket()intgetConnectionTimeout()StringgetDescription()StringgetHost()intgetPort()intgetSoTimeout()voidsetConnectionTimeout(int connectionTimeout)voidsetHost(String host)voidsetPort(int port)voidsetSoTimeout(int soTimeout)
-
-
-
Constructor Detail
-
DefaultJedisSocketFactory
public DefaultJedisSocketFactory(String host, int port, int connectionTimeout, int soTimeout, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier)
-
-
Method Detail
-
createSocket
public Socket createSocket() throws IOException
- Specified by:
createSocketin interfaceJedisSocketFactory- Throws:
IOException
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceJedisSocketFactory
-
getHost
public String getHost()
- Specified by:
getHostin interfaceJedisSocketFactory
-
setHost
public void setHost(String host)
- Specified by:
setHostin interfaceJedisSocketFactory
-
getPort
public int getPort()
- Specified by:
getPortin interfaceJedisSocketFactory
-
setPort
public void setPort(int port)
- Specified by:
setPortin interfaceJedisSocketFactory
-
getConnectionTimeout
public int getConnectionTimeout()
- Specified by:
getConnectionTimeoutin interfaceJedisSocketFactory
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
- Specified by:
setConnectionTimeoutin interfaceJedisSocketFactory
-
getSoTimeout
public int getSoTimeout()
- Specified by:
getSoTimeoutin interfaceJedisSocketFactory
-
setSoTimeout
public void setSoTimeout(int soTimeout)
- Specified by:
setSoTimeoutin interfaceJedisSocketFactory
-
-