Class RocketMQUtils
java.lang.Object
com.alibaba.cloud.stream.binder.rocketmq.utils.RocketMQUtils
- Author:
- Jim
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringanonymousGroup(String destination) generate anonymous group.static StringgetInstanceName(org.apache.rocketmq.remoting.RPCHook rpcHook, String identify) static org.apache.rocketmq.client.consumer.MessageSelectorgetMessageSelector(String expression) static StringgetNameServerStr(String nameServer) static <T extends RocketMQCommonProperties>
TmergeRocketMQProperties(RocketMQBinderConfigurationProperties binderConfigurationProperties, T mqProperties)
-
Method Details
-
mergeRocketMQProperties
public static <T extends RocketMQCommonProperties> T mergeRocketMQProperties(RocketMQBinderConfigurationProperties binderConfigurationProperties, T mqProperties) -
getInstanceName
-
getNameServerStr
-
getMessageSelector
public static org.apache.rocketmq.client.consumer.MessageSelector getMessageSelector(String expression) -
anonymousGroup
generate anonymous group.- Parameters:
destination- not null- Returns:
- anonymous group name.
-