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, wait
isInternalTopic, originalTopic
public 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.Configurable
public java.lang.String formatRemoteTopic(java.lang.String sourceClusterAlias, java.lang.String topic)
ReplicationPolicy
formatRemoteTopic
in interface ReplicationPolicy
public java.lang.String topicSource(java.lang.String topic)
ReplicationPolicy
topicSource
in interface ReplicationPolicy
public java.lang.String upstreamTopic(java.lang.String topic)
ReplicationPolicy
upstreamTopic
in interface ReplicationPolicy