public static interface RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder extends RemoteServers.RemoteServer.RemoteServerBuilder<RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder>
RemoteServers.PrimaryInitiator
.
A builder of this type may be created using
Diffusion.newRemoteServerBuilder(Class)
specifying
PrimaryInitiatorBuilder.class
as the parameter.
Modifier and Type | Method and Description |
---|---|
RemoteServers.PrimaryInitiator |
build(String name,
List<String> urls,
String connector)
Builds a primary initiator using the current values known to this
builder.
|
RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder |
retryDelay(int delay)
Specifies the delay after losing a connection before attempting a
reconnection.
|
reset
RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder retryDelay(int delay)
The value is specified in milliseconds. Default 1000 (1 second).
RemoteServers.PrimaryInitiator build(String name, List<String> urls, String connector)
name
- the name of the primary initiator which must
correspond too the name of an RemoteServers.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 serverCopyright © 2024 DiffusionData Ltd. All Rights Reserved.