/** * Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. This value is used when no socket timeout is set in the * {@link HttpMethodParams HTTP method parameters}. * * @param timeout Timeout in milliseconds */ public void setSoTimeout(int timeout) { setIntParameter(SO_TIMEOUT, timeout); }
/** * Sets a hint the size of the underlying buffers used by the platform * for incoming network I/O. This value is a suggestion to the kernel from * the application about the size of buffers to use for the data to be received * over the socket. * * @param size the hint size of the send buffer */ public void setReceiveBufferSize(int size) { setIntParameter(SO_RCVBUF, size); }
/** * Sets a hint the size of the underlying buffers used by the platform for * outgoing network I/O. This value is a suggestion to the kernel from the * application about the size of buffers to use for the data to be sent over * the socket. * * @param size the hint size of the send buffer */ public void setSendBufferSize(int size) { setIntParameter(SO_SNDBUF, size); }
/** * Sets the timeout until a connection is etablished. A value of zero * means the timeout is not used. The default value is zero. * * @param timeout Timeout in milliseconds. */ public void setConnectionTimeout(int timeout) { setIntParameter(CONNECTION_TIMEOUT, timeout); }
/** * Returns linger-on-close timeout. This option disables/enables immediate return * from a close() of a TCP Socket. Enabling this option with a non-zero Integer * timeout means that a close() will block pending the transmission and * acknowledgement of all data written to the peer, at which point the socket is * closed gracefully. Value <tt>0</tt> implies that the option is * disabled. Value <tt>-1</tt> implies that the JRE default is used. * * @param value the linger-on-close timeout */ public void setLinger(int value) { setIntParameter(SO_LINGER, value); }
/** * Sets a hint the size of the underlying buffers used by the platform * for incoming network I/O. This value is a suggestion to the kernel from * the application about the size of buffers to use for the data to be received * over the socket. * * @param size the hint size of the send buffer */ public void setReceiveBufferSize(int size) { setIntParameter(SO_RCVBUF, size); }
/** * Sets a hint the size of the underlying buffers used by the platform for * outgoing network I/O. This value is a suggestion to the kernel from the * application about the size of buffers to use for the data to be sent over * the socket. * * @param size the hint size of the send buffer */ public void setSendBufferSize(int size) { setIntParameter(SO_SNDBUF, size); }
/** * Sets a hint the size of the underlying buffers used by the platform for * outgoing network I/O. This value is a suggestion to the kernel from the * application about the size of buffers to use for the data to be sent over * the socket. * * @param size the hint size of the send buffer */ public void setSendBufferSize(int size) { setIntParameter(SO_SNDBUF, size); }
/** * Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. This value is used when no socket timeout is set in the * {@link HttpMethodParams HTTP method parameters}. * * @param timeout Timeout in milliseconds */ public void setSoTimeout(int timeout) { setIntParameter(SO_TIMEOUT, timeout); }
/** * Sets a hint the size of the underlying buffers used by the platform for * outgoing network I/O. This value is a suggestion to the kernel from the * application about the size of buffers to use for the data to be sent over * the socket. * * @param size the hint size of the send buffer */ public void setSendBufferSize(int size) { setIntParameter(SO_SNDBUF, size); }
/** * Sets a hint the size of the underlying buffers used by the platform for * outgoing network I/O. This value is a suggestion to the kernel from the * application about the size of buffers to use for the data to be sent over * the socket. * * @param size the hint size of the send buffer */ public void setSendBufferSize(int size) { setIntParameter(SO_SNDBUF, size); }
/** * Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. This value is used when no socket timeout is set in the * {@link HttpMethodParams HTTP method parameters}. * * @param timeout Timeout in milliseconds */ public void setSoTimeout(int timeout) { setIntParameter(SO_TIMEOUT, timeout); }
/** * Sets a hint the size of the underlying buffers used by the platform * for incoming network I/O. This value is a suggestion to the kernel from * the application about the size of buffers to use for the data to be received * over the socket. * * @param size the hint size of the send buffer */ public void setReceiveBufferSize(int size) { setIntParameter(SO_RCVBUF, size); }
/** * Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. This value is used when no socket timeout is set in the * {@link HttpMethodParams HTTP method parameters}. * * @param timeout Timeout in milliseconds */ public void setSoTimeout(int timeout) { setIntParameter(SO_TIMEOUT, timeout); }
/** * Sets the timeout until a connection is etablished. A value of zero * means the timeout is not used. The default value is zero. * * @param timeout Timeout in milliseconds. */ public void setConnectionTimeout(int timeout) { setIntParameter(CONNECTION_TIMEOUT, timeout); }
/** * Sets a hint the size of the underlying buffers used by the platform * for incoming network I/O. This value is a suggestion to the kernel from * the application about the size of buffers to use for the data to be received * over the socket. * * @param size the hint size of the send buffer */ public void setReceiveBufferSize(int size) { setIntParameter(SO_RCVBUF, size); }
/** * Sets the timeout until a connection is etablished. A value of zero * means the timeout is not used. The default value is zero. * * @param timeout Timeout in milliseconds. */ public void setConnectionTimeout(int timeout) { setIntParameter(CONNECTION_TIMEOUT, timeout); }
/** * Sets the timeout until a connection is etablished. A value of zero * means the timeout is not used. The default value is zero. * * @param timeout Timeout in milliseconds. */ public void setConnectionTimeout(int timeout) { setIntParameter(CONNECTION_TIMEOUT, timeout); }
/** * Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. This value is used when no socket timeout is set in the * {@link HttpMethodParams HTTP method parameters}. * * @param timeout Timeout in milliseconds */ public void setSoTimeout(int timeout) { setIntParameter(SO_TIMEOUT, timeout); }
/** * Sets the timeout until a connection is etablished. A value of zero * means the timeout is not used. The default value is zero. * * @param timeout Timeout in milliseconds. */ public void setConnectionTimeout(int timeout) { setIntParameter(CONNECTION_TIMEOUT, timeout); }