@InterfaceStability.Evolving public interface ReplicationPolicy
Modifier and Type | Method and Description |
---|---|
default String |
checkpointsTopic(String clusterAlias)
Returns the name checkpoint topic for given cluster alias.
|
String |
formatRemoteTopic(String sourceClusterAlias,
String topic)
How to rename remote topics; generally should be like us-west.topic1.
|
default String |
heartbeatsTopic()
Returns heartbeats topic name.
|
default boolean |
isCheckpointsTopic(String topic)
check if topic is a checkpoint topic.
|
default boolean |
isHeartbeatsTopic(String topic)
check if topic is a heartbeat topic, e.g heartbeats, us-west.heartbeats.
|
default boolean |
isInternalTopic(String topic)
Internal topics are never replicated.
|
default boolean |
isMM2InternalTopic(String topic)
Check topic is one of MM2 internal topic, this is used to make sure the topic doesn't need to be replicated.
|
default String |
offsetSyncsTopic(String clusterAlias)
Returns the offset-syncs topic for given cluster alias.
|
default String |
originalTopic(String topic)
The name of the original source-topic, which may have been replicated multiple hops.
|
String |
topicSource(String topic)
Source cluster alias of given remote topic, e.g.
|
String |
upstreamTopic(String topic)
Name of topic on the source cluster, e.g.
|
String formatRemoteTopic(String sourceClusterAlias, String topic)
String topicSource(String topic)
String upstreamTopic(String topic)
Topics may be replicated multiple hops, so the immediately upstream topic may itself be a remote topic.
Returns null if not a remote topic.
default String originalTopic(String topic)
default String heartbeatsTopic()
default String offsetSyncsTopic(String clusterAlias)
default String checkpointsTopic(String clusterAlias)
default boolean isHeartbeatsTopic(String topic)
default boolean isCheckpointsTopic(String topic)
default boolean isMM2InternalTopic(String topic)
default boolean isInternalTopic(String topic)