AMPS C# Client  5.3.3.4
AMPS C# Client for .NET
AMPS.Client.ReconnectDelayStrategy Interface Reference

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:

See also
ExponentialDelayStrategy

ExponentialDelayStrategy and

See also
FixedDelayStrategy

FixedDelayStrategy</seelaso> More...

+ 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...
 

Detailed Description

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:

See also
ExponentialDelayStrategy

ExponentialDelayStrategy

and

See also
FixedDelayStrategy

FixedDelayStrategy</seelaso>

Member Function Documentation

◆ getConnectWaitDuration()

int AMPS.Client.ReconnectDelayStrategy.getConnectWaitDuration ( String  uri_)

Returns the time (in milliseconds) that the client should wait before connecting to the given server URI.

Parameters
uri_The URI to which the client plans to connect.
Exceptions
ExceptionAny exception thrown indicates no connection should be attempted. The client, in essence, should "give up."

Implemented in AMPS.Client.FixedDelayStrategy, and AMPS.Client.ExponentialDelayStrategy.

◆ reset()

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.


The documentation for this interface was generated from the following file: