com.apifan.framework.jpush.config.JPushProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpush-spring-boot-starter Show documentation
Show all versions of jpush-spring-boot-starter Show documentation
简单易用的极光推送服务端辅助工具包。可直接快速集成到您的 SpringBoot 项目中。
package com.apifan.framework.jpush.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* 极光推送参数
*
* @author yin
*/
@Component
@ConfigurationProperties(prefix = "jpush")
public class JPushProperties {
/**
* masterSecret(从极光后台获得)
*/
private String masterSecret;
/**
* appKey(从极光后台获得)
*/
private String appKey;
/**
* 是否启用代理服务器
*/
private boolean useProxy = false;
/**
* 代理服务器主机名或IP
*/
private String proxyHost;
/**
* 代理服务器端口号
*/
private int proxyPort;
/**
* 代理服务器用户名
*/
private String proxyUsername;
/**
* 代理服务器密码
*/
private String proxyPassword;
/**
* 重试时间间隔(毫秒)
*/
private Long retryInterval = 500L;
/**
* 最大重试次数(0表示不重试)
*/
private Integer retryMaxAttempts = 0;
public String getMasterSecret() {
return masterSecret;
}
public void setMasterSecret(String masterSecret) {
this.masterSecret = masterSecret;
}
public String getAppKey() {
return appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
}
public boolean isUseProxy() {
return useProxy;
}
public void setUseProxy(boolean useProxy) {
this.useProxy = useProxy;
}
public String getProxyHost() {
return proxyHost;
}
public void setProxyHost(String proxyHost) {
this.proxyHost = proxyHost;
}
public int getProxyPort() {
return proxyPort;
}
public void setProxyPort(int proxyPort) {
this.proxyPort = proxyPort;
}
public String getProxyUsername() {
return proxyUsername;
}
public void setProxyUsername(String proxyUsername) {
this.proxyUsername = proxyUsername;
}
public String getProxyPassword() {
return proxyPassword;
}
public void setProxyPassword(String proxyPassword) {
this.proxyPassword = proxyPassword;
}
public Long getRetryInterval() {
return retryInterval;
}
public void setRetryInterval(Long retryInterval) {
this.retryInterval = retryInterval;
}
public Integer getRetryMaxAttempts() {
return retryMaxAttempts;
}
public void setRetryMaxAttempts(Integer retryMaxAttempts) {
this.retryMaxAttempts = retryMaxAttempts;
}
}