cn.xishan.oftenporter.bridge.http.websocket.WSClientConfig Maven / Gradle / Ivy
package cn.xishan.oftenporter.bridge.http.websocket;
import java.util.Map;
/**
* @author Created by https://github.com/CLovinr on 2017/11/20.
*/
public abstract class WSClientConfig
{
/**
* 单位毫秒
*/
public int initDelay = 0;
/**
* 单位毫秒
*/
public int retryDelay = 20000;
/**
* 小于0表示无限重试
*/
public int retryTimes = -1;
/**
* 单位毫秒
*/
public int connectTimeout = 10 * 1000;
/**
* 是否主动进行ping操作。
*/
public boolean enablePing=false;
/**
* ping的时间
*/
public Integer pingTimeSecond=60;
/**
* 判断失去连接的时间
*/
public Integer connectionLostTimeoutSecond = null;
public abstract String getWSUrl();
public abstract Map getConnectHeaders();
public WSClientConfig()
{
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy