@ThreadSafe public interface TopicSelector
| Modifier and Type | Method and Description |
|---|---|
static TopicSelector |
defaultSelector(String prefix)
Get the default topic selector logic, which uses a '.' delimiter character when needed.
|
static TopicSelector |
defaultSelector(String prefix,
String delimiter)
Get the default topic selector logic, which uses the supplied delimiter character when needed.
|
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)
prefix - the name of the prefix to be used for all topics; may not be null and must not terminate in the
delimiterstatic TopicSelector defaultSelector(String prefix, String delimiter)
prefix - the name of the prefix to be used for all topics; may not be null and must not terminate in the
delimiterdelimiter - 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()
Copyright © 2018 JBoss by Red Hat. All rights reserved.