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 Summary
Modifier and TypeMethodDescriptionBuilds a primary initiator using the current values known to this builder.retryDelay
(int delay) Specifies the delay after losing a connection before attempting a reconnection.Methods inherited from interface com.pushtechnology.diffusion.client.features.control.RemoteServers.RemoteServer.RemoteServerBuilder
reset
-
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
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 anRemoteServers.SecondaryAcceptor
defined on the secondary serverurls
- the list of URLs to use to initiate connections to the secondary serversconnector
- the name of the connector used to establish the connection with the secondary server- Returns:
- a new primary initiator instance
-