com.aliyun.openservices.ons.api.MessageSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw-boot-starter-aliyun-ons Show documentation
Show all versions of gw-boot-starter-aliyun-ons Show documentation
A Java Utils Libraray By Geewit
package com.aliyun.openservices.ons.api;
/**
* 消息选择器
*/
public class MessageSelector {
private ExpressionType type;
/**
* 表达式
*/
private String subExpression;
public static MessageSelector bySql(String subExpression) {
return new MessageSelector(ExpressionType.SQL92, subExpression);
}
public static MessageSelector byTag(String subExpression) {
return new MessageSelector(ExpressionType.TAG, subExpression);
}
private MessageSelector() {
}
private MessageSelector(ExpressionType type, String subExpression) {
this.type = type;
this.subExpression = subExpression;
}
public ExpressionType getType() {
return type;
}
public String getSubExpression() {
return subExpression;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy