public class DefaultReplicationPolicy extends java.lang.Object implements ReplicationPolicy, org.apache.kafka.common.Configurable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SEPARATOR_CONFIG |
static java.lang.String |
SEPARATOR_DEFAULT |
| Constructor and Description |
|---|
DefaultReplicationPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.util.Map<java.lang.String,?> props) |
java.lang.String |
formatRemoteTopic(java.lang.String sourceClusterAlias,
java.lang.String topic)
How to rename remote topics; generally should be like us-west.topic1.
|
java.lang.String |
topicSource(java.lang.String topic)
Source cluster alias of given remote topic, e.g.
|
java.lang.String |
upstreamTopic(java.lang.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 java.lang.String SEPARATOR_CONFIG
public static final java.lang.String SEPARATOR_DEFAULT
public void configure(java.util.Map<java.lang.String,?> props)
configure in interface org.apache.kafka.common.Configurablepublic java.lang.String formatRemoteTopic(java.lang.String sourceClusterAlias,
java.lang.String topic)
ReplicationPolicyformatRemoteTopic in interface ReplicationPolicypublic java.lang.String topicSource(java.lang.String topic)
ReplicationPolicytopicSource in interface ReplicationPolicypublic java.lang.String upstreamTopic(java.lang.String topic)
ReplicationPolicyupstreamTopic in interface ReplicationPolicy