Package redis.clients.jedis
Interface JedisSocketFactory
-
- All Known Implementing Classes:
DefaultJedisSocketFactory
public interface JedisSocketFactoryJedisSocketFactory: 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SocketcreateSocket()intgetConnectionTimeout()StringgetDescription()StringgetHost()intgetPort()intgetSoTimeout()voidsetConnectionTimeout(int connectionTimeout)voidsetHost(String host)voidsetPort(int port)voidsetSoTimeout(int soTimeout)
-
-
-
Method Detail
-
createSocket
Socket createSocket() throws IOException
- Throws:
IOException
-
getDescription
String getDescription()
-
getHost
String getHost()
-
setHost
void setHost(String host)
-
getPort
int getPort()
-
setPort
void setPort(int port)
-
getConnectionTimeout
int getConnectionTimeout()
-
setConnectionTimeout
void setConnectionTimeout(int connectionTimeout)
-
getSoTimeout
int getSoTimeout()
-
setSoTimeout
void setSoTimeout(int soTimeout)
-
-