public interface FanOutConfig extends Config
Fan-out is defined as the replication of topics from primary servers (maintaining the 'source' or 'master' versions of the topics) to one or more secondary (or 'edge') servers. Updates to replicated topics on a primary server are fanned out to the replica topics on the secondary servers.
This configuration is used to define fan-out requirements for a secondary server. It is possible to define one or more connections to primary servers in order to replicate all or parts of the topic tree of the primary server(s) to the secondary server.
There can only be one connection defined to any one primary server. The topics to replicate are defined in terms of one or more links representing selections of the topic tree to replicate.
Routing topics are replicated to secondary servers. The secondary server must have a local routing topic handler to resolve subscriptions to routing topics.
Modifier and Type | Method and Description |
---|---|
FanOutConnectionConfig |
addConnection(String name,
String url)
Add a new connection to a primary server.
|
FanOutConnectionConfig |
getConnection(String name)
Get a named fan-out connection.
|
List<FanOutConnectionConfig> |
getConnections()
Get the configured list of primary server connections.
|
FanOutConnectionConfig addConnection(String name, String url) throws ConfigException
name
- the name of the connectionurl
- the URL associated with the connectionConfigException
- if name or url not supplied or there is already a
connection with the same name or urlFanOutConnectionConfig getConnection(String name)
name
- the name of the connection.List<FanOutConnectionConfig> getConnections()
Copyright © 2021 Push Technology Ltd. All Rights Reserved.