public class BusUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROUP_INDEX_DELIMITER
The delimiter between a group and index when constructing a bus consumer/producer.
|
static java.util.regex.Pattern |
PUBSUB_NAMED_CHANNEL_PATTERN |
static java.lang.String |
TAP_CHANNEL_PREFIX
The prefix for the consumer/producer when creating a tap.
|
static java.lang.String |
TOPIC_CHANNEL_PREFIX
The prefix for the consumer/producer when creating a topic.
|
Constructor and Description |
---|
BusUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addGroupToPubSub(java.lang.String group,
java.lang.String inputChannelName) |
static java.lang.String |
constructPipeName(java.lang.String group,
int index)
Construct a pipe name from the group and index.
|
static java.lang.String |
constructTapPrefix(java.lang.String group) |
static boolean |
isChannelPubSub(java.lang.String channelName)
Determine whether the provided channel name represents a pub/sub channel (i.e.
|
static java.lang.String |
removeGroupFromPubSub(java.lang.String name) |
public static final java.lang.String GROUP_INDEX_DELIMITER
public static final java.lang.String TAP_CHANNEL_PREFIX
public static final java.lang.String TOPIC_CHANNEL_PREFIX
public static final java.util.regex.Pattern PUBSUB_NAMED_CHANNEL_PATTERN
public static java.lang.String addGroupToPubSub(java.lang.String group, java.lang.String inputChannelName)
public static java.lang.String removeGroupFromPubSub(java.lang.String name)
public static boolean isChannelPubSub(java.lang.String channelName)
channelName
- name of the channel to checkpublic static java.lang.String constructPipeName(java.lang.String group, int index)
group
- the group.index
- the index.public static java.lang.String constructTapPrefix(java.lang.String group)