Interface IPrimaryInitiatorBuilder
- Assembly
- Diffusion.Client.dll
Builder for a IPrimaryInitiator.
A builder of this type may be created using
NewRemoteServerBuilder(RemoteServerType) specifying
RemoteServerType.PRIMARY_INITIATOR as the parameter.
public interface IPrimaryInitiatorBuilder : IRemoteServerBuilder<IPrimaryInitiatorBuilder>
- Inherited Members
Methods
Build(string, List<string>, string)
Builds a primary initiator using the current values known to this builder.
IPrimaryInitiator Build(string name, List<string> urls, string connector)
Parameters
namestringThe name of the primary initiator which must correspond to the name of a ISecondaryAcceptor defined on the secondary server.
urlsList<string>The list of URLs to use to initiate connections to the secondary servers.
connectorstringThe name of the connector used to establish the connection with the secondary server.
Returns
- IPrimaryInitiator
A new primary initiator instance.
RetryDelay(int)
Specifies the delay after losing a connection before attempting a reconnection.
The value is specified in milliseconds. Default is 1000 (1 second).
IPrimaryInitiatorBuilder RetryDelay(int delay)
Parameters
delayintThe delay.
Returns
- IPrimaryInitiatorBuilder
The builder.