Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PrimaryInitiatorBuilder

Builder for a PrimaryInitiator.

A builder of this type may be created using newRemoteServerBuilder specifying {@code RemoteServerType.PRIMARY_INITIATOR} as the parameter.

Hierarchy

Index

Methods

build

  • Builds a primary initiator using the current values known to this builder.

    throws

    an IllegalArgumentError if the name, urls, or connector is empty or the urls are invalid

    throws

    a NullValueError if any of the arguments are null

    Parameters

    • name: string

      the name of a primary initiator which must correspond too the name of a SecondaryAcceptor defined on the secondary server.

    • urls: string[]

      the list of URLs to use to initiate connections to the secondary servers.

    • connector: string

      the name of the connector used to establish the connection with the secondary server.

    Returns RemoteServerDefinition

    a new primary initiator instance.

reset

retryDelay

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

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

    throws

    an IllegalArgumentError if the delay is less than 0

    throws

    a NullValueError if the delay is null

    Parameters

    • delay: number

    Returns PrimaryInitiatorBuilder