@ThreadSafe public interface MySqlTopicSelector extends TopicSelector<TableId>
Modifier and Type | Method and Description |
---|---|
static MySqlTopicSelector |
defaultSelector(String prefix,
String heartbeatPrefix)
Get the default topic selector logic, which uses a '.' delimiter character when needed.
|
static MySqlTopicSelector |
defaultSelector(String prefix,
String heartbeatPrefix,
String delimiter)
Get the default topic selector logic, which uses the supplied delimiter character when needed.
|
String |
getHeartbeatTopic()
Get the name of the heartbeat topic.
|
String |
getPrimaryTopic()
Get the name of the primary topic.
|
String |
getTopic(String databaseName,
String tableName)
Get the name of the topic for the given server name.
|
default String |
topicNameFor(TableId tableId)
Get the name of the topic for the given server name.
|
static MySqlTopicSelector defaultSelector(String prefix, String heartbeatPrefix)
prefix
- the name of the prefix to be used for all topics; may not be null and must not terminate in the
delimiter
heartbeatPrefix
- the name of the prefix to be used for all heartbeat topics; may not be null and must not terminate in the
delimiter
static MySqlTopicSelector defaultSelector(String prefix, String heartbeatPrefix, String delimiter)
prefix
- the name of the prefix to be used for all topics; may not be null and must not terminate in the
delimiter
heartbeatPrefix
- - a prefix that will be used for heartbeat topics. All heartbeat topics will start with this prefix and will use
delimiter
to separate the heartbeat prefix and the rest of the namedelimiter
- the string delineating the server, database, and table names; may not be nulldefault String topicNameFor(TableId tableId)
topicNameFor
in interface TopicSelector<TableId>
tableId
- the identifier of the table; may not be nullString getTopic(String databaseName, String tableName)
databaseName
- the name of the database; may not be nulltableName
- the name of the table; may not be nullString getPrimaryTopic()
String getHeartbeatTopic()
Copyright © 2018 JBoss by Red Hat. All rights reserved.