according to official documentation https://www.rethinkdb.com/api/java/ it is seconds, but following the flow of the code, we get to a java.net.Socket, whose timeout is set in ms. I assume it is an error in the java documentation.
in this class are you sure do you intend 20 ms as default?
package com.rethinkdb;
public class RethinkDBConstants {
public static final String DEFAULT_DB_NAME = "test";
public static final String DEFAULT_HOSTNAME = "localhost";
public static final String DEFAULT_AUTHKEY = "";
public static final int DEFAULT_PORT = 28015;
public static final int DEFAULT_TIMEOUT = 20;
according to official documentation https://www.rethinkdb.com/api/java/ it is seconds, but following the flow of the code, we get to a java.net.Socket, whose timeout is set in ms. I assume it is an error in the java documentation.
in this class are you sure do you intend 20 ms as default? package com.rethinkdb;
public class RethinkDBConstants { public static final String DEFAULT_DB_NAME = "test"; public static final String DEFAULT_HOSTNAME = "localhost"; public static final String DEFAULT_AUTHKEY = ""; public static final int DEFAULT_PORT = 28015; public static final int DEFAULT_TIMEOUT = 20;
}