Interface RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder

All Superinterfaces:
RemoteServers.RemoteServer.RemoteServerBuilder<RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder>
Enclosing interface:
RemoteServers.PrimaryInitiator

public static interface RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder extends RemoteServers.RemoteServer.RemoteServerBuilder<RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder>
Builder for a RemoteServers.PrimaryInitiator.

A builder of this type may be created using Diffusion.newRemoteServerBuilder(Class) specifying PrimaryInitiatorBuilder.class as the parameter.

  • Method Details

    • retryDelay

      Specifies the delay after losing a connection before attempting a reconnection.

      The value is specified in milliseconds. Default 1000 (1 second).

    • build

      RemoteServers.PrimaryInitiator build(String name, List<String> urls, String connector)
      Builds a primary initiator using the current values known to this builder.
      Parameters:
      name - the name of the primary initiator which must correspond too the name of an RemoteServers.SecondaryAcceptor defined on the secondary server
      urls - the list of URLs to use to initiate connections to the secondary servers
      connector - the name of the connector used to establish the connection with the secondary server
      Returns:
      a new primary initiator instance