@ThreadSafe public interface TopicSelector
| Modifier and Type | Method and Description |
|---|---|
static TopicSelector |
defaultSelector(String prefix,
String heartbeatPrefix)
Get the default topic selector logic, which uses a '.' delimiter character when needed.
|
static TopicSelector |
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 |
getTopic(TableId tableId)
Get the name of the topic for the given server name.
|
static TopicSelector 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
delimiterheartbeatPrefix - the name of the prefix to be used for all heartbeat topics; may not be null and must not terminate in the
delimiterstatic TopicSelector 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
delimiterheartbeatPrefix - - 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 getTopic(TableId 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.