/** * <p>Enables or disables the timeout entirely. This may be useful if you want to store the timeout value but wish * to temporarily disable/enable timeouts.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setTimeoutEnabled(boolean timeoutEnabled) { this.timeoutEnabled = timeoutEnabled; resetTimeout(); }
@Override public void run() { timeoutOccurred(); } };
/** * <p>Sets the receive timeout to the given number of milliseconds, automatically killing the connection if no * messages are received for this long</p> * * <p>A timeout of 0 is interpreted as no timeout.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setSocketTimeout(int timeoutMillis) { this.timeoutMillis = timeoutMillis; resetTimeout(); }
@Override public void run() { timeoutOccurred(); } };
/** * <p>Enables or disables the timeout entirely. This may be useful if you want to store the timeout value but wish * to temporarily disable/enable timeouts.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setTimeoutEnabled(boolean timeoutEnabled) { this.timeoutEnabled = timeoutEnabled; resetTimeout(); }
@Override public void run() { timeoutOccurred(); } };
/** * <p>Enables or disables the timeout entirely. This may be useful if you want to store the timeout value but wish * to temporarily disable/enable timeouts.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setTimeoutEnabled(boolean timeoutEnabled) { this.timeoutEnabled = timeoutEnabled; resetTimeout(); }
@Override public void run() { timeoutOccurred(); } };
/** * <p>Enables or disables the timeout entirely. This may be useful if you want to store the timeout value but wish * to temporarily disable/enable timeouts.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setTimeoutEnabled(boolean timeoutEnabled) { this.timeoutEnabled = timeoutEnabled; resetTimeout(); }
/** * <p>Sets the receive timeout to the given number of milliseconds, automatically killing the connection if no * messages are received for this long</p> * * <p>A timeout of 0 is interpreted as no timeout.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setSocketTimeout(int timeoutMillis) { this.timeoutMillis = timeoutMillis; resetTimeout(); }
/** * <p>Sets the receive timeout to the given number of milliseconds, automatically killing the connection if no * messages are received for this long</p> * * <p>A timeout of 0 is interpreted as no timeout.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setSocketTimeout(int timeoutMillis) { this.timeoutMillis = timeoutMillis; resetTimeout(); }
/** * <p>Sets the receive timeout to the given number of milliseconds, automatically killing the connection if no * messages are received for this long</p> * * <p>A timeout of 0 is interpreted as no timeout.</p> * * <p>The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).</p> * * <p>This call will reset the current progress towards the timeout.</p> */ public synchronized final void setSocketTimeout(int timeoutMillis) { this.timeoutMillis = timeoutMillis; resetTimeout(); }