Collapse All Expand All

.NET Framework Class Library
Tibems Class See Also

[TIBCO.EMS .NET client library 6.1 documentation]

Sets the parameter for the number of attempts the connections make to reconnect to the backup server during fault-tolerant switch.

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public static void SetReconnectAttempts(
    	string specs
    )

    Public Shared Sub SetReconnectAttempts ( _
    	specs As String _
    )

    public:
    static void SetReconnectAttempts(
    	String^ specs
    )

#### Parameters

specs
  Type: System..::.String
  Set the reconnect 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 reestablish a connection to the server. When this property is absent, the default value is 4. The minimum value is 1.
  - delay is the time (in milliseconds) between reconnection attempts. When absent, the default value is 500. The minimum value is 250.

# Remarks

This parameter is similar to the parameter set by setConnectAttempts method. The difference is that it may be necessary to use different parameters during reconnect than during the initial connect. Initial connect of the clients to the server is normally distributed in time and there are less chances of the server exceeding its maximum accept queue. During fault-tolerant switch, all connected clients automatically try to reconnect to the backup server, approximately at the same time. When the number of connections is large, it may require more attempts to reconnect than the initial connect.

# See Also

Tibems Class
TIBCO.EMS Namespace