Class RecoveryConfiguration
RecoveryConfiguration is a class that represents the configuration of the recovery of the topology. It is used to configure the recovery of the topology of the server after a connection is established in case of a reconnection The RecoveryConfiguration can be disabled or enabled. If RecoveryConfiguration._active is disabled, the reconnect mechanism will not be activated. If RecoveryConfiguration._topology is disabled, the recovery of the topology will not be activated.
public class RecoveryConfiguration : IRecoveryConfiguration
- Inheritance
-
RecoveryConfiguration
- Implements
- Inherited Members
Methods
Activated(bool)
Define if the recovery is activated. If is not activated the connection will not try to reconnect.
public IRecoveryConfiguration Activated(bool activated)
Parameters
activated
bool
Returns
BackOffDelayPolicy(IBackOffDelayPolicy)
Define the backoff delay policy. It is used when the connection is trying to reconnect.
public IRecoveryConfiguration BackOffDelayPolicy(IBackOffDelayPolicy backOffDelayPolicy)
Parameters
backOffDelayPolicy
IBackOffDelayPolicy
Returns
GetBackOffDelayPolicy()
public IBackOffDelayPolicy GetBackOffDelayPolicy()
Returns
IsActivated()
public bool IsActivated()
Returns
IsTopologyActive()
public bool IsTopologyActive()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Topology(bool)
Define if the recovery of the topology is activated. When Activated the connection will try to recover the topology after a reconnection. It is valid only if the recovery is activated.
public IRecoveryConfiguration Topology(bool activated)
Parameters
activated
bool