Exemple #1
0
  /** Set the connection timeout and socket timeout */
  public static void setTimeouts(long connectionTimeout, long socketTimeout) {
    Options.setOption(Option.CONNECTION_TIMEOUT, connectionTimeout);
    Options.setOption(Option.SOCKET_TIMEOUT, socketTimeout);

    // Reload the client implementations
    Options.refresh();
  }
Exemple #2
0
 static {
   refresh();
 }