|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.net.ConnectionManagerSettings
The ConnectionManagerSettings class specifies settings for a
ConnectionManager.
| Constructor Summary | |
ConnectionManagerSettings()
Constructs a ConnectionManagerSettings object. |
|
| Method Summary | |
static boolean |
areDefaultPersistentConnectionsEnabled()
Returns the current boolean value of the
ice.net.persistentConnectionsEnabled property. |
boolean |
arePersistentConnectionsEnabled()
Returns whether or not the ConnectionManager to be
created using this ConnectionManagerSettings uses
PersistentConnections. |
boolean |
equals(Object object)
|
static int |
getDefaultMaxPersistentConnections()
Returns the current int value of the
ice.net.maxPersistentConnections property. |
static int |
getDefaultPersistentConnectionTimeout()
Returns the current int value of the
ice.net.persistentConnectionTimeout property. |
static int |
getDefaultReadBufferSize()
Returns the current int value of the
ice.net.readBufferSize property. |
static int |
getDefaultSoTimeout()
Returns the current int value of the
ice.net.soTimeout property. |
int |
getMaxPersistentConnections()
Returns the max PersistentConnections used by the
ConnectionManager to be created using this
ConnectionManagerSettings. |
int |
getPersistentConnectionTimeout()
Returns the PersistentConnection timeout in seconds used
by the ConnectionManager to be created using this
ConnectionManagerSettings. |
int |
getReadBufferSize()
Returns the read buffer size in bytes used by the ConnectionManager to be created using this
ConnectionManagerSettings. |
int |
getSoTimeout()
Returns the SO_TIMEOUT in milliseconds used by the ConnectionManager to be created using this
ConnectionManagerSettings. |
static boolean |
isDefaultNagleEnabled()
Returns the current boolean value of the
ice.net.nagleEnabled property. |
boolean |
isNagleEnabled()
Returns whether or not the ConnectionManager to be
created using this ConnectionManagerSettings uses Nagle's
algorithm. |
void |
resetToDefault()
Resets the settings of current instance to the default settings. |
static void |
setDefaultMaxPersistentConnections(int maxPersistentConnections)
Set the default max number of simultaneous PersistentConnections allowed to the specified
maxPersistentConnections (recommendation is 4). |
static void |
setDefaultNagleEnabled(boolean nagleEnabled)
|
static void |
setDefaultPersistentConnectionsEnabled(boolean persistentConnectionsEnabled)
|
static void |
setDefaultPersistentConnectionTimeout(int persistentConnectionTimeout)
|
static void |
setDefaultReadBufferSize(int readBufferSize)
|
static void |
setDefaultSoTimeout(int soTimeout)
|
void |
setMaxPersistentConnections(int maxPersistentConnections)
Set the max number of simultaneous persistent connections allowed (recommendation is 4). |
void |
setNagleEnabled(boolean nagleEnabled)
|
void |
setPersistentConnectionsEnabled(boolean persistentConnectionsEnabled)
|
void |
setPersistentConnectionTimeout(int persistentConnectionTimeout)
|
void |
setReadBufferSize(int readBufferSize)
|
void |
setSoTimeout(int soTimeout)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConnectionManagerSettings()
Constructs a ConnectionManagerSettings object.
| Method Detail |
public static boolean areDefaultPersistentConnectionsEnabled()
Returns the current boolean value of the
ice.net.persistentConnectionsEnabled property.
boolean value of the
ice.net.persistentConnectionsEnabled property.setDefaultPersistentConnectionsEnabled(boolean)public boolean arePersistentConnectionsEnabled()
Returns whether or not the ConnectionManager to be
created using this ConnectionManagerSettings uses
PersistentConnections.
true if the ConnectionManager to be
created uses persistent connections, false if
not.setPersistentConnectionsEnabled(boolean),
PersistentConnectionpublic boolean equals(Object object)
public static int getDefaultMaxPersistentConnections()
Returns the current int value of the
ice.net.maxPersistentConnections property.
int value of the
ice.net.maxPersistentConnections property.setDefaultMaxPersistentConnections(int)public static int getDefaultPersistentConnectionTimeout()
Returns the current int value of the
ice.net.persistentConnectionTimeout property.
int value of the
ice.net.persistentConnectionTimeout property.setDefaultPersistentConnectionTimeout(int)public static int getDefaultReadBufferSize()
Returns the current int value of the
ice.net.readBufferSize property.
int value of the
ice.net.readBufferSize property.setDefaultReadBufferSize(int)public static int getDefaultSoTimeout()
Returns the current int value of the
ice.net.soTimeout property.
int value of the
ice.net.soTimeout property.setDefaultSoTimeout(int)public int getMaxPersistentConnections()
Returns the max PersistentConnections used by the
ConnectionManager to be created using this
ConnectionManagerSettings.
setMaxPersistentConnections(int),
PersistentConnectionpublic int getPersistentConnectionTimeout()
Returns the PersistentConnection timeout in seconds used
by the ConnectionManager to be created using this
ConnectionManagerSettings.
setPersistentConnectionTimeout(int),
PersistentConnectionpublic int getReadBufferSize()
Returns the read buffer size in bytes used by the
ConnectionManager to be created using this
ConnectionManagerSettings.
The actual read buffer size is used by the Connections
created by the ConnectionManager.
setReadBufferSize(int),
Connectionpublic int getSoTimeout()
Returns the SO_TIMEOUT in milliseconds used by the
ConnectionManager to be created using this
ConnectionManagerSettings.
The actual SO_TIMEOUT is used by the Sockets encapsulated
in the Connections created by the
ConenctionManager.
setReadBufferSize(int),
Socket.setSoTimeout(int),
Connectionpublic static boolean isDefaultNagleEnabled()
Returns the current boolean value of the
ice.net.nagleEnabled property.
boolean value of the
ice.net.nagleEnabled property.setDefaultNagleEnabled(boolean)public boolean isNagleEnabled()
Returns whether or not the ConnectionManager to be
created using this ConnectionManagerSettings uses Nagle's
algorithm.
The actual Nagle algorithm is used by the Sockets
encapsulated in the Connections created by the
ConnectionManager.
true if the ConnectionManager to be
created uses the Nagle's algorithm, false if
not.setNagleEnabled(boolean),
Socket.setTcpNoDelay(boolean),
Connectionpublic void resetToDefault()
SettingsResets the settings of current instance to the default settings.
resetToDefault in interface Settings
public static void setDefaultMaxPersistentConnections(int maxPersistentConnections)
throws IllegalArgumentException
Set the default max number of simultaneous
PersistentConnections allowed to the specified
maxPersistentConnections (recommendation is 4).
That is, every new instance of ConnectionManagerSettings
will have the max PersistentConnections set to the specified
maxPersistentConnections.
This method sets the ice.net.maxPersistentConnections
property for the current runtime.
Note: The max number of simultaneous persistent connections "must" be at least 2, or ICEbrowser will deadlock on most web pages!
maxPersistentConnections - the new max persistent connections.
IllegalArgumentException - if the specified maxPersistentConnections
is less than -1.getDefaultMaxPersistentConnections(),
getMaxPersistentConnections(),
PersistentConnectionpublic static void setDefaultNagleEnabled(boolean nagleEnabled)
public static void setDefaultPersistentConnectionsEnabled(boolean persistentConnectionsEnabled)
public static void setDefaultPersistentConnectionTimeout(int persistentConnectionTimeout)
throws IllegalArgumentException
IllegalArgumentException
public static void setDefaultReadBufferSize(int readBufferSize)
throws IllegalArgumentException
IllegalArgumentException
public static void setDefaultSoTimeout(int soTimeout)
throws IllegalArgumentException
IllegalArgumentException
public void setMaxPersistentConnections(int maxPersistentConnections)
throws IllegalArgumentException
Set the max number of simultaneous persistent connections allowed (recommendation is 4).
Note: The max number of simultaneous persistent connections must be at least 2, or ICEbrowser will deadlock on most web pages!
maxPersistentConnections -
IllegalArgumentExceptionpublic void setNagleEnabled(boolean nagleEnabled)
public void setPersistentConnectionsEnabled(boolean persistentConnectionsEnabled)
public void setPersistentConnectionTimeout(int persistentConnectionTimeout)
throws IllegalArgumentException
IllegalArgumentException
public void setReadBufferSize(int readBufferSize)
throws IllegalArgumentException
IllegalArgumentException
public void setSoTimeout(int soTimeout)
throws IllegalArgumentException
IllegalArgumentExceptionpublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||