code: void setDataSourceLoginTimeout(int seconds) throws SQLException {
        for(ConnectionPoolSegment segment : segments) {
           if(segment.dbConnection.datasource != null) {
              segment.dbConnection.datasource.setLoginTimeout(seconds);
           }
        }
     }
docs: Sets the login timeout for any segments that are configured
  with a {@code DataSource} for connections.
  @param seconds The timeout in seconds.