What are the differences and relationships between TimeoutOptions and defaultTimeout of AbstractRedisClient? #2913
Replies: 1 comment
-
See similar discussion #2614 The /**
* Set the default timeout for connections created by this client. The timeout applies to connection attempts and
* non-blocking commands.
*
* @param timeout default connection timeout, must not be {@code null}.
* @since 5.0
* @deprecated since 6.2, use {@link RedisURI#getTimeout()} to control timeouts.
*/
@Deprecated
public void setDefaultTimeout(Duration timeout) { Both this method and the The ClientOptions allow to override that with more fine-grained settings using the |
Beta Was this translation helpful? Give feedback.
-
I found that AbstractRedisClient has a defaultTimeout, and I saw a TimeoutOptions that also set the timeout. What is the difference and connection between the two timeout settings?
Beta Was this translation helpful? Give feedback.
All reactions