/**
  * Obtains the value of {@link NIOReactorPNames#GRACE_PERIOD} parameter. If not set, defaults to
  * {@code 500}.
  *
  * @param params HTTP parameters.
  * @return shutdown grace period in milliseconds.
  */
 public static long getGracePeriod(final HttpParams params) {
   Args.notNull(params, "HTTP parameters");
   return params.getLongParameter(GRACE_PERIOD, 500);
 }
 /**
  * Returns the timeout in milliseconds used when retrieving a {@link
  * org.apache.http.conn.ManagedClientConnection} from the {@link
  * org.apache.http.conn.ClientConnectionManager}.
  *
  * @return timeout in milliseconds.
  * @deprecated (4.1) use {@link
  *     org.apache.http.params.HttpConnectionParams#getConnectionTimeout(HttpParams)}
  */
 @Deprecated
 public static long getTimeout(final HttpParams params) {
   Args.notNull(params, "HTTP parameters");
   return params.getLongParameter(TIMEOUT, 0);
 }
 /**
  * Obtains the value of {@link NIOReactorPNames#SELECT_INTERVAL} parameter. If not set, defaults
  * to {@code 1000}.
  *
  * @param params HTTP parameters.
  * @return I/O select interval in milliseconds.
  */
 public static long getSelectInterval(final HttpParams params) {
   Args.notNull(params, "HTTP parameters");
   return params.getLongParameter(SELECT_INTERVAL, 1000);
 }