/** * Sets whether or not isStale() will be called when testing if this connection is open. * * <p>Setting this flag to <code>false</code> will increase performance when reusing * connections, but it will also make them less reliable. Stale checking ensures that * connections are viable before they are used. When set to <code>false</code> some * method executions will result in IOExceptions and they will have to be retried.</p> * * @param staleCheckEnabled <code>true</code> to enable isStale() * * @see #isStale() * @see #isOpen() * * @deprecated Use {@link HttpConnectionParams#setStaleCheckingEnabled(boolean)}, * {@link HttpConnection#getParams()}. */ public void setStaleCheckingEnabled(boolean staleCheckEnabled) { this.params.setStaleCheckingEnabled(staleCheckEnabled); }
/** * Sets whether or not isStale() will be called when testing if this connection is open. * * <p>Setting this flag to <code>false</code> will increase performance when reusing * connections, but it will also make them less reliable. Stale checking ensures that * connections are viable before they are used. When set to <code>false</code> some * method executions will result in IOExceptions and they will have to be retried.</p> * * @param staleCheckEnabled <code>true</code> to enable isStale() * * @see #isStale() * @see #isOpen() * * @deprecated Use {@link HttpConnectionParams#setStaleCheckingEnabled(boolean)}, * {@link HttpConnection#getParams()}. */ public void setStaleCheckingEnabled(boolean staleCheckEnabled) { this.params.setStaleCheckingEnabled(staleCheckEnabled); }
/** * Sets whether or not isStale() will be called when testing if this connection is open. * * <p>Setting this flag to <code>false</code> will increase performance when reusing * connections, but it will also make them less reliable. Stale checking ensures that * connections are viable before they are used. When set to <code>false</code> some * method executions will result in IOExceptions and they will have to be retried.</p> * * @param staleCheckEnabled <code>true</code> to enable isStale() * * @see #isStale() * @see #isOpen() * * @deprecated Use {@link HttpConnectionParams#setStaleCheckingEnabled(boolean)}, * {@link HttpConnection#getParams()}. */ public void setStaleCheckingEnabled(boolean staleCheckEnabled) { this.params.setStaleCheckingEnabled(staleCheckEnabled); }
/** * Sets whether or not isStale() will be called when testing if this connection is open. * * <p>Setting this flag to <code>false</code> will increase performance when reusing * connections, but it will also make them less reliable. Stale checking ensures that * connections are viable before they are used. When set to <code>false</code> some * method executions will result in IOExceptions and they will have to be retried.</p> * * @param staleCheckEnabled <code>true</code> to enable isStale() * * @see #isStale() * @see #isOpen() * * @deprecated Use {@link HttpConnectionParams#setStaleCheckingEnabled(boolean)}, * {@link HttpConnection#getParams()}. */ public void setStaleCheckingEnabled(boolean staleCheckEnabled) { this.params.setStaleCheckingEnabled(staleCheckEnabled); }
/** * Sets whether or not isStale() will be called when testing if this connection is open. * * <p>Setting this flag to <code>false</code> will increase performance when reusing * connections, but it will also make them less reliable. Stale checking ensures that * connections are viable before they are used. When set to <code>false</code> some * method executions will result in IOExceptions and they will have to be retried.</p> * * @param staleCheckEnabled <code>true</code> to enable isStale() * * @see #isStale() * @see #isOpen() * * @deprecated Use {@link HttpConnectionParams#setStaleCheckingEnabled(boolean)}, * {@link HttpConnection#getParams()}. */ public void setStaleCheckingEnabled(boolean staleCheckEnabled) { this.params.setStaleCheckingEnabled(staleCheckEnabled); }
/** * Sets whether or not isStale() will be called when testing if this connection is open. * * <p>Setting this flag to <code>false</code> will increase performance when reusing * connections, but it will also make them less reliable. Stale checking ensures that * connections are viable before they are used. When set to <code>false</code> some * method executions will result in IOExceptions and they will have to be retried.</p> * * @param staleCheckEnabled <code>true</code> to enable isStale() * * @see #isStale() * @see #isOpen() * * @deprecated Use {@link HttpConnectionParams#setStaleCheckingEnabled(boolean)}, * {@link HttpConnection#getParams()}. */ public void setStaleCheckingEnabled(boolean staleCheckEnabled) { this.params.setStaleCheckingEnabled(staleCheckEnabled); }
/** * Sets whether or not isStale() will be called when testing if this connection is open. * * <p>Setting this flag to <code>false</code> will increase performance when reusing * connections, but it will also make them less reliable. Stale checking ensures that * connections are viable before they are used. When set to <code>false</code> some * method executions will result in IOExceptions and they will have to be retried.</p> * * @param staleCheckEnabled <code>true</code> to enable isStale() * * @see #isStale() * @see #isOpen() * * @deprecated Use {@link HttpConnectionParams#setStaleCheckingEnabled(boolean)}, * {@link HttpConnection#getParams()}. */ @Deprecated public void setStaleCheckingEnabled(boolean staleCheckEnabled) { this.params.setStaleCheckingEnabled(staleCheckEnabled); }