[TIBCO.EMS .NET client library 7.0 documentation]
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)
Modify the connection attempts setting determining the number of
attempts the client makes to connect to the server.
Namespace:
TIBCO.EMSAssembly: TIBCO.EMS (in TIBCO.EMS.dll)
Syntax
public static void SetConnectAttempts( string specs ) |
Public Shared Sub SetConnectAttempts ( _ specs As String _ ) |
public: static void SetConnectAttempts( String^ specs ) |
Parameters
- specs
- Type: System..::.String
Set the connect setting to these specifications. The value must be string of the form attempts or attempts,delay:- attempts limits the number of times that the connection object attempts to establish a connection to the server. When this property is absent, the default value is 2. The minimum value is 1.
- delay is the time (in milliseconds) between connection attempts. When absent, the default value is 500. The minimum value is 250.
Remarks
When too many clients connect to the same server, the server may not
be able to accept all connections at the same time. This parameter
specifies the number of attempts and delay between the attempt
the connections perform in order to connect to the server. The value
of this parameter is a String in the form "NN[,DELAY]" where NN is the
number of attempts and DELAY is delay in milliseconds between the
attempts. Minimum value of NN is 1, minimum value of DELAY is 250
milliseconds.