![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
The implementation of the ConnectionDetails interface. More...
Public Member Functions | |
ConnectionDetailsImpl () | |
Constructor. More... | |
ConnectionDetailsImpl (List< IServerDetails > servers) | |
Constructor. More... | |
Properties | |
int | ConnectionTimeout [get, set] |
Sets the default connection timeout. More... | |
V4Credentials | Credentials [get, set] |
Sets the default credentials. More... | |
TopicSet | Topics [get, set] |
Get/set the default topic(s) to be subscribed to upon connection. More... | |
bool | AutoAcknowledging [get, set] |
Sets the default auto acknowledge flag for connections. More... | |
bool | Cascading [get, set] |
Sets the 'cascading' option. More... | |
bool | AutoFailover [get, set] |
Sets the 'auto failover' option. More... | |
bool | LoadBalancing [get, set] |
Sets the 'load balancing' option. More... | |
List< IServerDetails > | ServerDetails [get, set] |
Get/set the list of ServerDetails objects to be considered when connecting. More... | |
![]() | |
int | ConnectionTimeout [get, set] |
Sets the default connection timeout. More... | |
V4Credentials | Credentials [get, set] |
Sets the default credentials. More... | |
TopicSet | Topics [get, set] |
Get/set the default topic(s) to be subscribed to upon connection. More... | |
bool | AutoAcknowledging [get, set] |
Sets the default auto acknowledge flag for connections. More... | |
bool | Cascading [get, set] |
Sets the 'cascading' option. More... | |
bool | AutoFailover [get, set] |
Sets the 'auto failover' option. More... | |
bool | LoadBalancing [get, set] |
Sets the 'load balancing' option. More... | |
List< IServerDetails > | ServerDetails [get, set] |
Get/set the list of ServerDetails objects to be considered when connecting. More... | |
The implementation of the ConnectionDetails interface.
PushTechnology.DiffusionCore.Connection.Connectors.Connection.ConnectionDetailsImpl.ConnectionDetailsImpl | ( | ) |
Constructor.
PushTechnology.DiffusionCore.Connection.Connectors.Connection.ConnectionDetailsImpl.ConnectionDetailsImpl | ( | List< IServerDetails > | servers | ) |
Constructor.
servers |
|
getset |
Sets the default auto acknowledge flag for connections.
|
getset |
Sets the 'auto failover' option.
By default, when a connection is lost then the listener is notified and the connection simply closed. However, if 'auto failover' is specified then if a connection is lost then an automatic attempt will be made to connect using the next ServerDetails (assuming more than one was provided).
|
getset |
Sets the 'cascading' option.
By default, when attempting to connect using a ServerDetails, if the connection fails then the connection will be aborted. However, if the 'Cascading' option is set and more than one ServerDetails has been supplied then if a connection attempt fails then it will move on to try the next in the list.
|
getset |
Sets the default connection timeout.
This value is used for connections where the timeout value is not explicitly specified in the ServerDetails.
If not explicitly set, then a default value will be assumed.
The timeout value is in milliseconds.
|
getset |
Sets the default credentials.
This value is used for connections where credentials have not been explicitly specified in the ServerDetails.
If not explicitly set, then no credentials are provided by default on connection.
|
getset |
Sets the 'load balancing' option.
By default, the list of ServerDetails specified will be selected in the order that they have been supplied. However, if the 'load balancing' option is set then the order of the list is randomised whenever a connect is requested.
|
getset |
Get/set the list of ServerDetails objects to be considered when connecting.
If no servers have been specified, then this will return an empty list.
|
getset |
Get/set the default topic(s) to be subscribed to upon connection.
This value is used for connections where initial topics have not been explicitly specified in the ServerDetails.
If not explicitly set, then no topics are subscribed to by default on connection.