public class IdentityReplicationPolicy extends DefaultReplicationPolicy
| Modifier and Type | Field and Description |
|---|---|
static String |
SOURCE_CLUSTER_ALIAS_CONFIG |
INTERNAL_TOPIC_SEPARATOR_ENABLED_CONFIG, INTERNAL_TOPIC_SEPARATOR_ENABLED_DEFAULT, 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, IdentityReplicationPolicy 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`.
|
checkpointsTopic, isCheckpointsTopic, isMM2InternalTopic, offsetSyncsTopicclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitheartbeatsTopic, isHeartbeatsTopic, isInternalTopic, originalTopicpublic static final String SOURCE_CLUSTER_ALIAS_CONFIG
public void configure(Map<String,?> props)
configure in interface org.apache.kafka.common.Configurableconfigure in class DefaultReplicationPolicypublic String formatRemoteTopic(String sourceClusterAlias, String topic)
formatRemoteTopic in interface ReplicationPolicyformatRemoteTopic in class DefaultReplicationPolicypublic String topicSource(String topic)
topicSource in interface ReplicationPolicytopicSource in class DefaultReplicationPolicypublic String upstreamTopic(String topic)
upstreamTopic in interface ReplicationPolicyupstreamTopic in class DefaultReplicationPolicy