-1

While defining a jedisPool object I used the following function and parameters as mentioned here.

public JedisPool(final GenericObjectPoolConfig<Jedis> poolConfig, final String host, int port,
      int timeout, final String password, final int database) {
    this(poolConfig, host, port, timeout, password, database, null);
  }

Everything except for timeout is explanatory. What does timeout stand for?

In the other function definitions, we could find parameters like connectionTimeout, soTimeout, and infiniteSoTimeout. If anyone could direct me to any resources that would be much appreciated. I couldn't find these in the official jedis page.

Anandakrishnan
  • 347
  • 1
  • 4
  • 18

1 Answers1

2

The single timeout parameter represents same value for both connectionTimeout and soTimeout.

In such case infiniteSoTimeout is defaulted to 0 (zero, representing indefinite time).

sazzad
  • 5,740
  • 6
  • 25
  • 42