public interface JedisSocketFactory
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
限定符和类型 | 方法和说明 |
---|---|
java.net.Socket |
createSocket()
WARNING: Throwing IOException will not be supported in future.
|
int |
getConnectionTimeout()
已过时。
|
java.lang.String |
getDescription()
已过时。
|
java.lang.String |
getHost()
已过时。
|
int |
getPort()
已过时。
|
int |
getSoTimeout()
已过时。
|
void |
setConnectionTimeout(int connectionTimeout)
已过时。
|
void |
setHost(java.lang.String host)
已过时。
|
void |
setPort(int port)
已过时。
|
void |
setSoTimeout(int soTimeout)
已过时。
|
void |
updateHostAndPort(HostAndPort hostAndPort) |
java.net.Socket createSocket() throws java.io.IOException, JedisConnectionException
java.io.IOException
- this will be removed in futureJedisConnectionException
void updateHostAndPort(HostAndPort hostAndPort)
@Deprecated java.lang.String getDescription()
@Deprecated java.lang.String getHost()
@Deprecated void setHost(java.lang.String host)
@Deprecated int getPort()
@Deprecated void setPort(int port)
@Deprecated int getConnectionTimeout()
@Deprecated void setConnectionTimeout(int connectionTimeout)
@Deprecated int getSoTimeout()
@Deprecated void setSoTimeout(int soTimeout)