public class DefaultReplicationPolicy extends Object implements ReplicationPolicy, Configurable
| Modifier and Type | Field and Description |
|---|---|
static String |
SEPARATOR_CONFIG |
static String |
SEPARATOR_DEFAULT |
| Constructor and Description |
|---|
DefaultReplicationPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,?> props)
Configure this class with the given key-value pairs
|
String |
formatRemoteTopic(String sourceClusterAlias,
String topic)
How to rename remote topics; generally should be like us-west.topic1.
|
String |
topicSource(String topic)
Source cluster alias of given remote topic, e.g.
|
String |
upstreamTopic(String topic)
Name of topic on the source cluster, e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInternalTopic, originalTopicpublic static final String SEPARATOR_CONFIG
public static final String SEPARATOR_DEFAULT
public void configure(Map<String,?> props)
Configurableconfigure in interface Configurablepublic String formatRemoteTopic(String sourceClusterAlias, String topic)
ReplicationPolicyformatRemoteTopic in interface ReplicationPolicypublic String topicSource(String topic)
ReplicationPolicytopicSource in interface ReplicationPolicypublic String upstreamTopic(String topic)
ReplicationPolicyupstreamTopic in interface ReplicationPolicy