public class IdentityReplicationPolicy extends DefaultReplicationPolicy
Modifier and Type | Field and Description |
---|---|
static String |
SOURCE_CLUSTER_ALIAS_CONFIG |
SEPARATOR_CONFIG, SEPARATOR_DEFAULT
Constructor and Description |
---|
IdentityReplicationPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Map<String,?> props) |
String |
formatRemoteTopic(String sourceClusterAlias,
String topic)
Unlike DefaultReplicationPolicy, IdentityReplicationPolicy does not include the source
cluster alias in the remote topic name.
|
String |
topicSource(String topic)
Unlike DefaultReplicationPolicy, IdendityReplicationPolicy cannot know the source of
a remote topic based on its name alone.
|
String |
upstreamTopic(String topic)
Since any topic may be a "remote topic", this just returns `topic`.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInternalTopic, originalTopic
public static final String SOURCE_CLUSTER_ALIAS_CONFIG
public void configure(Map<String,?> props)
configure
in interface org.apache.kafka.common.Configurable
configure
in class DefaultReplicationPolicy
public String formatRemoteTopic(String sourceClusterAlias, String topic)
formatRemoteTopic
in interface ReplicationPolicy
formatRemoteTopic
in class DefaultReplicationPolicy
public String topicSource(String topic)
topicSource
in interface ReplicationPolicy
topicSource
in class DefaultReplicationPolicy
public String upstreamTopic(String topic)
upstreamTopic
in interface ReplicationPolicy
upstreamTopic
in class DefaultReplicationPolicy