|
AMPS C# Client
5.3.4.0
AMPS C# Client for .NET
|
Reconnect delay strategy implementations are called by HAClient to determine how long to wait between attempts to connect or reconnect to a server. AMPS provides two predefined implementations:
Inheritance diagram for AMPS.Client.ReconnectDelayStrategy:Public Member Functions | |
| int | getConnectWaitDuration (String uri_) |
| Returns the time (in milliseconds) that the client should wait before connecting to the given server URI. More... | |
| void | reset () |
| Reset the state of this reconnect delay. AMPS calls this method when a connection is successfully established. More... | |
Reconnect delay strategy implementations are called by HAClient to determine how long to wait between attempts to connect or reconnect to a server. AMPS provides two predefined implementations:
and
| int AMPS.Client.ReconnectDelayStrategy.getConnectWaitDuration | ( | String | uri_ | ) |
Returns the time (in milliseconds) that the client should wait before connecting to the given server URI.
| uri_ | The URI to which the client plans to connect. |
| Exception | Any exception thrown indicates no connection should be attempted. The client, in essence, should "give up." |
Implemented in AMPS.Client.ExponentialDelayStrategy, and AMPS.Client.FixedDelayStrategy.
| void AMPS.Client.ReconnectDelayStrategy.reset | ( | ) |
Reset the state of this reconnect delay. AMPS calls this method when a connection is successfully established.
Implemented in AMPS.Client.ExponentialDelayStrategy, and AMPS.Client.FixedDelayStrategy.