public class DefaultJedisSocketFactory extends Object implements JedisSocketFactory
| Modifier and Type | Field and Description |
|---|---|
protected static HostAndPort |
DEFAULT_HOST_AND_PORT |
| Constructor and Description |
|---|
DefaultJedisSocketFactory() |
DefaultJedisSocketFactory(HostAndPort hostAndPort) |
DefaultJedisSocketFactory(HostAndPort hostAndPort,
JedisClientConfig config) |
DefaultJedisSocketFactory(JedisClientConfig config) |
DefaultJedisSocketFactory(String host,
int port,
int connectionTimeout,
int socketTimeout,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket()
WARNING: Throwing IOException will not be supported in future.
|
int |
getConnectionTimeout() |
String |
getDescription() |
String |
getHost() |
HostAndPort |
getHostAndPort() |
HostAndPortMapper |
getHostAndPortMapper() |
HostnameVerifier |
getHostnameVerifier() |
int |
getPort() |
HostAndPort |
getSocketHostAndPort() |
int |
getSoTimeout() |
SSLParameters |
getSslParameters() |
SSLSocketFactory |
getSslSocketFactory() |
boolean |
isSsl() |
void |
setConnectionTimeout(int connectionTimeout)
Deprecated.
This will be removed in next major release.
|
void |
setHost(String host)
Deprecated.
This will be removed in next major release. Use
updateHostAndPort(redis.clients.jedis.HostAndPort). |
void |
setHostAndPort(HostAndPort hostAndPort)
Deprecated.
This will be removed in next major release. Use
updateHostAndPort(redis.clients.jedis.HostAndPort). |
void |
setHostAndPortMapper(HostAndPortMapper hostAndPortMapper)
Deprecated.
This will be removed in next major release.
|
void |
setHostnameVerifier(HostnameVerifier hostnameVerifier)
Deprecated.
This will be removed in next major release.
|
void |
setPort(int port)
Deprecated.
This will be removed in next major release. Use
updateHostAndPort(redis.clients.jedis.HostAndPort). |
void |
setSoTimeout(int soTimeout)
Deprecated.
This will be removed in next major release.
|
void |
setSsl(boolean ssl)
Deprecated.
This will be removed in next major release.
|
void |
setSslParameters(SSLParameters sslParameters)
Deprecated.
This will be removed in next major release.
|
void |
setSslSocketFactory(SSLSocketFactory sslSocketFactory)
Deprecated.
This will be removed in next major release.
|
String |
toString() |
void |
updateHostAndPort(HostAndPort hostAndPort) |
protected static final HostAndPort DEFAULT_HOST_AND_PORT
public DefaultJedisSocketFactory()
public DefaultJedisSocketFactory(HostAndPort hostAndPort)
public DefaultJedisSocketFactory(JedisClientConfig config)
@Deprecated public DefaultJedisSocketFactory(String host, int port, int connectionTimeout, int socketTimeout, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier)
public DefaultJedisSocketFactory(HostAndPort hostAndPort, JedisClientConfig config)
public Socket createSocket() throws JedisConnectionException
JedisSocketFactorycreateSocket in interface JedisSocketFactoryJedisConnectionExceptionpublic void updateHostAndPort(HostAndPort hostAndPort)
updateHostAndPort in interface JedisSocketFactorypublic HostAndPort getSocketHostAndPort()
public HostAndPort getHostAndPort()
@Deprecated public void setHostAndPort(HostAndPort hostAndPort)
updateHostAndPort(redis.clients.jedis.HostAndPort).hostAndPort - public String getDescription()
getDescription in interface JedisSocketFactorypublic String getHost()
getHost in interface JedisSocketFactory@Deprecated public void setHost(String host)
updateHostAndPort(redis.clients.jedis.HostAndPort).setHost in interface JedisSocketFactoryhost - public int getPort()
getPort in interface JedisSocketFactory@Deprecated public void setPort(int port)
updateHostAndPort(redis.clients.jedis.HostAndPort).setPort in interface JedisSocketFactoryport - public int getConnectionTimeout()
getConnectionTimeout in interface JedisSocketFactory@Deprecated public void setConnectionTimeout(int connectionTimeout)
setConnectionTimeout in interface JedisSocketFactoryconnectionTimeout - public int getSoTimeout()
getSoTimeout in interface JedisSocketFactory@Deprecated public void setSoTimeout(int soTimeout)
setSoTimeout in interface JedisSocketFactorysoTimeout - public boolean isSsl()
@Deprecated public void setSsl(boolean ssl)
ssl - public SSLSocketFactory getSslSocketFactory()
@Deprecated public void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
sslSocketFactory - public SSLParameters getSslParameters()
@Deprecated public void setSslParameters(SSLParameters sslParameters)
sslParameters - public HostnameVerifier getHostnameVerifier()
@Deprecated public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
hostnameVerifier - public HostAndPortMapper getHostAndPortMapper()
@Deprecated public void setHostAndPortMapper(HostAndPortMapper hostAndPortMapper)
hostAndPortMapper - Copyright © 2023. All rights reserved.