code: private int getTimeout(CassandraHost cassandraHost) {
      int timeoutVar = 0;
      if ( cassandraHost != null && cassandraHost.getCassandraThriftSocketTimeout() > 0 ) {
        timeoutVar = cassandraHost.getCassandraThriftSocketTimeout();
      } else {
        String timeoutStr = System.getProperty(
            SystemProperties.CASSANDRA_THRIFT_SOCKET_TIMEOUT.toString());
        if (timeoutStr != null && timeoutStr.length() > 0) {
          try {
            timeoutVar = Integer.parseInt(timeoutStr);
          } catch (NumberFormatException e) {
            log.error("Invalid value for CASSANDRA_THRIFT_SOCKET_TIMEOUT", e);
          }
        }
      }
      return timeoutVar;
    }
docs: If CassandraHost was not null we use {@link CassandraHost#getCassandraThriftSocketTimeout()}
  if it was greater than zero. Otherwise look for an environment
  variable name CASSANDRA_THRIFT_SOCKET_TIMEOUT value.
  If doesn't exist, returns 0.
  @param cassandraHost