@ThreadSafe public class MongoDbTopicSelector extends Object
TopicSelector.| Constructor and Description |
|---|
MongoDbTopicSelector() |
| Modifier and Type | Method and Description |
|---|---|
static TopicSelector<CollectionId> |
defaultSelector(String prefix,
String heartbeatPrefix)
Gets the selector for topics for a given prefix, database name, and collection name.
|
private static String |
getTopicName(CollectionId collectionId,
String prefix,
String delimiter)
Get the name of the topic for a given prefix, database name, and collection name.
|
public static TopicSelector<CollectionId> defaultSelector(String prefix, String heartbeatPrefix)
<prefix>.<dbName>.<collectionName>", and does not use the replica set name.prefix - the prefix; be null or empty if no prefix is neededheartbeatPrefix - the name of the prefix to be used for all heartbeat topics; may not be null and must not terminate in the
delimiterprivate static String getTopicName(CollectionId collectionId, 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 neededCopyright © 2019 JBoss by Red Hat. All rights reserved.