/** * Sets the connection timeout (in milliseconds). * * @param timeout the timeout. * @deprecated since 2.0, configure the timeout using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setTimeout(long timeout) { getMutableConfiguration().setTimeout(Duration.ofMillis(timeout)); }
/** * Sets to use verify certificate validity/hostname check when SSL is used. * * @param verifyPeer {@literal false} not to verify hostname. * @deprecated since 2.0, configure peer verification using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setVerifyPeer(boolean verifyPeer) { getMutableConfiguration().setVerifyPeer(verifyPeer); }
/** * Sets to issue StartTLS. * * @param startTls {@literal true} to issue StartTLS. * @deprecated since 2.0, configure StartTLS using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setStartTls(boolean startTls) { getMutableConfiguration().setStartTls(startTls); }
/** * Sets to use SSL connection. * * @param useSsl {@literal true} to use SSL. * @deprecated since 2.0, configure SSL usage using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setUseSsl(boolean useSsl) { getMutableConfiguration().setUseSsl(useSsl); }
/** * Sets the client name used by this connection factory. * * @param clientName the client name. Can be {@literal null}. * @since 2.1 * @deprecated configure the client name using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setClientName(@Nullable String clientName) { this.getMutableConfiguration().setClientName(clientName); }
/** * Sets the shutdown timeout for shutting down the RedisClient (in milliseconds). * * @param shutdownTimeout the shutdown timeout. * @since 1.6 * @deprecated since 2.0, configure the shutdown timeout using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setShutdownTimeout(long shutdownTimeout) { getMutableConfiguration().setShutdownTimeout(Duration.ofMillis(shutdownTimeout)); }
/** * Sets the {@link ClientResources} to reuse the client infrastructure. <br /> * Set to {@literal null} to not share resources. * * @param clientResources can be {@literal null}. * @since 1.7 * @deprecated since 2.0, configure {@link ClientResources} using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setClientResources(ClientResources clientResources) { getMutableConfiguration().setClientResources(clientResources); }
/** * Sets the client name used by this connection factory. * * @param clientName the client name. Can be {@literal null}. * @since 2.1 * @deprecated configure the client name using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setClientName(@Nullable String clientName) { this.getMutableConfiguration().setClientName(clientName); }
/** * Sets the connection timeout (in milliseconds). * * @param timeout the timeout. * @deprecated since 2.0, configure the timeout using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setTimeout(long timeout) { getMutableConfiguration().setTimeout(Duration.ofMillis(timeout)); }
/** * Sets the connection timeout (in milliseconds). * * @param timeout the timeout. * @deprecated since 2.0, configure the timeout using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setTimeout(long timeout) { getMutableConfiguration().setTimeout(Duration.ofMillis(timeout)); }
/** * Sets the client name used by this connection factory. * * @param clientName the client name. Can be {@literal null}. * @since 2.1 * @deprecated configure the client name using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setClientName(@Nullable String clientName) { this.getMutableConfiguration().setClientName(clientName); }
/** * Sets to use SSL connection. * * @param useSsl {@literal true} to use SSL. * @deprecated since 2.0, configure SSL usage using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setUseSsl(boolean useSsl) { getMutableConfiguration().setUseSsl(useSsl); }
/** * Sets to use verify certificate validity/hostname check when SSL is used. * * @param verifyPeer {@literal false} not to verify hostname. * @deprecated since 2.0, configure peer verification using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setVerifyPeer(boolean verifyPeer) { getMutableConfiguration().setVerifyPeer(verifyPeer); }
/** * Sets to use SSL connection. * * @param useSsl {@literal true} to use SSL. * @deprecated since 2.0, configure SSL usage using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setUseSsl(boolean useSsl) { getMutableConfiguration().setUseSsl(useSsl); }
/** * Sets to issue StartTLS. * * @param startTls {@literal true} to issue StartTLS. * @deprecated since 2.0, configure StartTLS using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setStartTls(boolean startTls) { getMutableConfiguration().setStartTls(startTls); }
/** * Sets the shutdown timeout for shutting down the RedisClient (in milliseconds). * * @param shutdownTimeout the shutdown timeout. * @since 1.6 * @deprecated since 2.0, configure the shutdown timeout using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setShutdownTimeout(long shutdownTimeout) { getMutableConfiguration().setShutdownTimeout(Duration.ofMillis(shutdownTimeout)); }
/** * Sets the {@link ClientResources} to reuse the client infrastructure. <br /> * Set to {@literal null} to not share resources. * * @param clientResources can be {@literal null}. * @since 1.7 * @deprecated since 2.0, configure {@link ClientResources} using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setClientResources(ClientResources clientResources) { getMutableConfiguration().setClientResources(clientResources); }
/** * Sets the {@link ClientResources} to reuse the client infrastructure. <br /> * Set to {@literal null} to not share resources. * * @param clientResources can be {@literal null}. * @since 1.7 * @deprecated since 2.0, configure {@link ClientResources} using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setClientResources(ClientResources clientResources) { getMutableConfiguration().setClientResources(clientResources); }
/** * Sets to use verify certificate validity/hostname check when SSL is used. * * @param verifyPeer {@literal false} not to verify hostname. * @deprecated since 2.0, configure peer verification using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setVerifyPeer(boolean verifyPeer) { getMutableConfiguration().setVerifyPeer(verifyPeer); }
/** * Sets to issue StartTLS. * * @param startTls {@literal true} to issue StartTLS. * @deprecated since 2.0, configure StartTLS using {@link LettuceClientConfiguration}. * @throws IllegalStateException if {@link LettuceClientConfiguration} is immutable. */ @Deprecated public void setStartTls(boolean startTls) { getMutableConfiguration().setStartTls(startTls); }