io.geewit.boot.aliyun.ons.utils.PropertiesBuilder 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 io.geewit.boot.aliyun.ons.utils;
import com.aliyun.openservices.ons.api.PropertyKeyConst;
import io.geewit.boot.aliyun.AliyunProperties;
import io.geewit.boot.aliyun.ons.AliyunOnsProperties;
import java.util.Properties;
/**
* @author geewit
*/
@SuppressWarnings({"unused"})
public class PropertiesBuilder {
public static Properties properties(AliyunProperties aliyunProperties, AliyunOnsProperties aliyunOnsProperties) {
Properties properties = new Properties();
properties.put(PropertyKeyConst.AccessKey, aliyunProperties.getKey());
properties.put(PropertyKeyConst.SecretKey, aliyunProperties.getSecret());
properties.put(PropertyKeyConst.ONSAddr, aliyunOnsProperties.getOnsaddr());
properties.put(PropertyKeyConst.SendMsgTimeoutMillis, aliyunOnsProperties.getSendTimeout());
return properties;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy