/** * Sets the timeout. * * @param timeout the timeout to set. * @deprecated since 2.0, configure the timeout using {@link JedisClientConfiguration}. * @throws IllegalStateException if {@link JedisClientConfiguration} is immutable. */ @Deprecated public void setTimeout(int timeout) { getMutableConfiguration().setReadTimeout(Duration.ofMillis(timeout)); getMutableConfiguration().setConnectTimeout(Duration.ofMillis(timeout)); }
public void setShardInfo(JedisShardInfo shardInfo) { setSslSocketFactory(shardInfo.getSslSocketFactory()); setSslParameters(shardInfo.getSslParameters()); setHostnameVerifier(shardInfo.getHostnameVerifier()); setUseSsl(shardInfo.getSsl()); setConnectTimeout(Duration.ofMillis(shardInfo.getConnectionTimeout())); setReadTimeout(Duration.ofMillis(shardInfo.getSoTimeout())); } }
/** * Sets the timeout. * * @param timeout the timeout to set. * @deprecated since 2.0, configure the timeout using {@link JedisClientConfiguration}. * @throws IllegalStateException if {@link JedisClientConfiguration} is immutable. */ @Deprecated public void setTimeout(int timeout) { getMutableConfiguration().setReadTimeout(Duration.ofMillis(timeout)); getMutableConfiguration().setConnectTimeout(Duration.ofMillis(timeout)); }
public void setShardInfo(JedisShardInfo shardInfo) { setSslSocketFactory(shardInfo.getSslSocketFactory()); setSslParameters(shardInfo.getSslParameters()); setHostnameVerifier(shardInfo.getHostnameVerifier()); setUseSsl(shardInfo.getSsl()); setConnectTimeout(Duration.ofMillis(shardInfo.getConnectionTimeout())); setReadTimeout(Duration.ofMillis(shardInfo.getSoTimeout())); } }
public void setShardInfo(JedisShardInfo shardInfo) { setSslSocketFactory(shardInfo.getSslSocketFactory()); setSslParameters(shardInfo.getSslParameters()); setHostnameVerifier(shardInfo.getHostnameVerifier()); setUseSsl(shardInfo.getSsl()); setConnectTimeout(Duration.ofMillis(shardInfo.getConnectionTimeout())); setReadTimeout(Duration.ofMillis(shardInfo.getSoTimeout())); } }
/** * Sets the timeout. * * @param timeout the timeout to set. * @deprecated since 2.0, configure the timeout using {@link JedisClientConfiguration}. * @throws IllegalStateException if {@link JedisClientConfiguration} is immutable. */ @Deprecated public void setTimeout(int timeout) { getMutableConfiguration().setReadTimeout(Duration.ofMillis(timeout)); getMutableConfiguration().setConnectTimeout(Duration.ofMillis(timeout)); }