| ClientNetworkConfigSetConnectionAttemptLimit Method |
While client is trying to connect initially to one of the members in the configured address list,
all might be not available. Instead of giving up, throwing Exception and stopping client, it will
attempt to retry as much as connection attempt limit times.
Namespace:
Hazelcast.Config
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.2
Syntax public virtual ClientNetworkConfig SetConnectionAttemptLimit(
int connectionAttemptLimit
)
Public Overridable Function SetConnectionAttemptLimit (
connectionAttemptLimit As Integer
) As ClientNetworkConfig
public:
virtual ClientNetworkConfig^ SetConnectionAttemptLimit(
int connectionAttemptLimit
)
abstract SetConnectionAttemptLimit :
connectionAttemptLimit : int -> ClientNetworkConfig
override SetConnectionAttemptLimit :
connectionAttemptLimit : int -> ClientNetworkConfig
Parameters
- connectionAttemptLimit
- Type: SystemInt32
number of times to attempt to connect;
A zero value means try forever.
A negative value means default value
Return Value
Type:
ClientNetworkConfigClientNetworkConfig for chaining
See Also