|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.services.http.HTTPConnectionManagerSettings
public class HTTPConnectionManagerSettings
Establishes the settings used to construct an Apache Commons HTTPClient HttpConnectionManager for the Proxy Service.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_CONNECTIONS_HOST
The default maximum number of connections allowed per host. |
static int |
DEFAULT_MAX_TOTAL_CONNECTIONS
The default maximum number of connections allowed overall. |
| Constructor Summary | |
|---|---|
HTTPConnectionManagerSettings()
Creates a default HTTPConnectionManagerSettings instance. |
|
| Method Summary | |
|---|---|
int |
getConnectionTimeout()
Returns the number of milliseconds to wait before a connection will timeout. |
int |
getDefaultMaxConnectionsPerHost()
Returns the default maximum number of connections allowed per host. |
int |
getLinger()
Returns linger-on-close timeout in seconds. |
List |
getMaxConnectionsPerHost()
Returns a collection of HostConfigurationSettings which specify connection options on a host-by-host basis. |
int |
getMaxTotalConnections()
Returns the maximum number of connections allowed. |
int |
getReceiveBufferSize()
Returns The size of the underlying receive buffers. |
int |
getSendBufferSize()
Return the size of the underlying send buffers. |
int |
getSocketTimeout()
Return the default socket timeout in milliseconds for waiting for data. |
boolean |
isStaleCheckingEnabled()
Returns whether a check for stale connections is to be performed. |
boolean |
isTcpNoDelay()
Return whether Nagle's algorithm should be used for this connection. |
void |
setConnectionTimeout(int value)
Sets the number of milliseconds to wait before a connection will timeout. |
void |
setDefaultMaxConnectionsPerHost(int value)
Sets the default maximum number of connections allowed per host. |
void |
setLinger(int linger)
Sets the linger-on-close timeout (in seconds). |
void |
setMaxConnectionsPerHost(List value)
Sets the list of HostConfigurationSettings specifying connection options on a host-by-host basis. |
void |
setMaxTotalConnections(int value)
Sets the maximum number of connections allowed. |
void |
setReceiveBufferSize(int value)
Sets a suggestion for kernel from the application about the size of buffers to use for the data to be received over the socket. |
void |
setSendBufferSize(int sendBufferSize)
Sets a suggestion for kernel from the application about the size of buffers to use for the data to be sent over the socket. |
void |
setSocketTimeout(int value)
Sets the socket timeout in milliseconds for waiting for data. |
void |
setStaleCheckingEnabled(boolean value)
Sets whether a check should be performed for stale connections. |
void |
setTcpNoDelay(boolean value)
Sets whether Nagle's algorithm should be used for this connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_CONNECTIONS_HOST
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS
| Constructor Detail |
|---|
public HTTPConnectionManagerSettings()
HTTPConnectionManagerSettings instance.
| Method Detail |
|---|
public int getConnectionTimeout()
public void setConnectionTimeout(int value)
value - - timeout in millisecondspublic int getDefaultMaxConnectionsPerHost()
public void setDefaultMaxConnectionsPerHost(int value)
value - - the maximum number of connectionspublic int getLinger()
0 implies that the option is
disabled. A value of -1 implies that the JRE default is
used.public void setLinger(int linger)
linger - An int. Use 0 to disable. Use -1
to rely on the JRE default.public List getMaxConnectionsPerHost()
HostConfigurationSettingspublic void setMaxConnectionsPerHost(List value)
value - The list of HostConfigurationSettings.HostConfigurationSettingspublic int getMaxTotalConnections()
public void setMaxTotalConnections(int value)
value - - the maximum number of connectionspublic int getReceiveBufferSize()
public void setReceiveBufferSize(int value)
value - - the suggested receive buffer sizepublic int getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
sendBufferSize - the suggested send buffer sizepublic int getSocketTimeout()
public void setSocketTimeout(int value)
value - - the timeout in millisecondspublic boolean isStaleCheckingEnabled()
public void setStaleCheckingEnabled(boolean value)
value - - whether stale connection checking should be performedpublic boolean isTcpNoDelay()
public void setTcpNoDelay(boolean value)
value - - whether Nagle's algorithm should be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/services/http/HTTPConnectionManagerSettings.html