Interface RemoteServers.PrimaryInitiator
- All Superinterfaces:
RemoteServers.RemoteServer
- Enclosing interface:
- RemoteServers
A primary initiator.
This type makes a connection from a primary server (cluster) to a
secondary server (or all secondary cluster members) with an
RemoteServers.SecondaryAcceptor
of the same name.
Use a RemoteServers.PrimaryInitiator.PrimaryInitiatorBuilder
to create an instance of this type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for aRemoteServers.PrimaryInitiator
.Nested classes/interfaces inherited from interface com.pushtechnology.diffusion.client.features.control.RemoteServers.RemoteServer
RemoteServers.RemoteServer.Builder, RemoteServers.RemoteServer.ConnectionOption, RemoteServers.RemoteServer.RemoteServerBuilder<B>, RemoteServers.RemoteServer.Type
-
Method Summary
Modifier and TypeMethodDescriptionReturns the connector that the primary initiator will use to establish a connection between the secondary server and the primary server.int
Returns the interval in milliseconds between connection retries.getUrls()
Returns the urls for connection to secondary servers.Methods inherited from interface com.pushtechnology.diffusion.client.features.control.RemoteServers.RemoteServer
getConnectionOptions, getMissingTopicNotificationFilter, getName, getPrincipal, getType, getUrl
-
Method Details
-
getUrls
Returns the urls for connection to secondary servers.- Returns:
- the list of urls for connection to secondary servers
-
getConnector
String getConnector()Returns the connector that the primary initiator will use to establish a connection between the secondary server and the primary server.- Returns:
- the connector name
-
getRetryDelay
int getRetryDelay()Returns the interval in milliseconds between connection retries.If a primary initiator cannot connect to a secondary server, or loses the connection, this is the amount of time before it will try to connect again.
- Returns:
- the retry delay time in milliseconds
-