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, wait
isInternalTopic, originalTopic
public static final String SEPARATOR_CONFIG
public static final String SEPARATOR_DEFAULT
public void configure(Map<String,?> props)
Configurable
configure
in interface Configurable
public String formatRemoteTopic(String sourceClusterAlias, String topic)
ReplicationPolicy
formatRemoteTopic
in interface ReplicationPolicy
public String topicSource(String topic)
ReplicationPolicy
topicSource
in interface ReplicationPolicy
public String upstreamTopic(String topic)
ReplicationPolicy
upstreamTopic
in interface ReplicationPolicy