Package org.apache.kafka.connect.mirror
Interface ReplicationPolicy
- All Known Implementing Classes:
DefaultReplicationPolicy,IdentityReplicationPolicy
@Evolving public interface ReplicationPolicy
Defines which topics are "remote topics". e.g. "us-west.topic1".
-
Method Summary
Modifier and Type Method Description StringformatRemoteTopic(String sourceClusterAlias, String topic)How to rename remote topics; generally should be like us-west.topic1.default booleanisInternalTopic(String topic)Internal topics are never replicated.default StringoriginalTopic(String topic)The name of the original source-topic, which may have been replicated multiple hops.StringtopicSource(String topic)Source cluster alias of given remote topic, e.g.StringupstreamTopic(String topic)Name of topic on the source cluster, e.g.
-
Method Details
-
formatRemoteTopic
How to rename remote topics; generally should be like us-west.topic1. -
topicSource
Source cluster alias of given remote topic, e.g. "us-west" for "us-west.topic1". Returns null if not a remote topic. -
upstreamTopic
Name of topic on the source cluster, e.g. "topic1" for "us-west.topic1". Topics may be replicated multiple hops, so the immediately upstream topic may itself be a remote topic. Returns null if not a remote topic. -
originalTopic
The name of the original source-topic, which may have been replicated multiple hops. Returns the topic if it is not a remote topic. -
isInternalTopic
Internal topics are never replicated.
-