AMPS C# Client
5.3.3.4
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:
FixedDelayStrategy</seelaso> More...
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
FixedDelayStrategy</seelaso>
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.FixedDelayStrategy, and AMPS.Client.ExponentialDelayStrategy.
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.FixedDelayStrategy, and AMPS.Client.ExponentialDelayStrategy.