Package redis.clients.jedis
Interface JedisSocketFactory
-
- All Known Implementing Classes:
DefaultJedisSocketFactory
public interface JedisSocketFactory
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Socket
createSocket()
int
getConnectionTimeout()
String
getDescription()
String
getHost()
int
getPort()
int
getSoTimeout()
void
setConnectionTimeout(int connectionTimeout)
void
setHost(String host)
void
setPort(int port)
void
setSoTimeout(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)
-
-