@ThreadSafe @FunctionalInterface public interface TopicSelector
| Modifier and Type | Method and Description |
|---|---|
static TopicSelector |
defaultSelector()
Get the name of the topic for a given database name and collection name.
|
static TopicSelector |
defaultSelector(String prefix)
Get the name of the topic for a given prefix, database name, and collection name.
|
static TopicSelector |
defaultSelector(String prefix,
String delimiter)
Get the name of the topic for a given prefix, database name, and collection name.
|
String |
getTopic(CollectionId collectionId)
Get the name of the topic for the given server name and database name.
|
static TopicSelector defaultSelector()
<dbName>.<collectionName>".static TopicSelector defaultSelector(String prefix)
<prefix>.<dbName>.<collectionName>", and does not use the replica set name.prefix - the prefix; be null or empty if no prefix is neededstatic TopicSelector defaultSelector(String prefix, String delimiter)
<prefix><delimiter><dbName><delimiter><collectionName>", and does not use the replica set name.delimiter - the string delineating the prefix, database, and collection names; may not be nullprefix - the prefix; be null or empty if no prefix is neededString getTopic(CollectionId collectionId)
collectionId - the identifier of the collection for which records are to be produced; may not be nullCopyright © 2016 JBoss by Red Hat. All rights reserved.