Class WebSocket
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cdn.v20180606.models.WebSocket
-
public class WebSocket extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSwitch()Get WebSocket 超时配置开关,取值有: on:开启,可以调整超时时间 off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒LonggetTimeout()Get 设置超时时间,单位为秒,最大超时时间300秒。 注意:此字段可能返回 null,表示取不到有效值。voidsetSwitch(String Switch)Set WebSocket 超时配置开关,取值有: on:开启,可以调整超时时间 off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒voidsetTimeout(Long Timeout)Set 设置超时时间,单位为秒,最大超时时间300秒。 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
WebSocket
public WebSocket()
-
WebSocket
public WebSocket(WebSocket source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getSwitch
public String getSwitch()
Get WebSocket 超时配置开关,取值有: on:开启,可以调整超时时间 off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒- Returns:
- Switch WebSocket 超时配置开关,取值有: on:开启,可以调整超时时间 off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒
-
setSwitch
public void setSwitch(String Switch)
Set WebSocket 超时配置开关,取值有: on:开启,可以调整超时时间 off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒- Parameters:
Switch- WebSocket 超时配置开关,取值有: on:开启,可以调整超时时间 off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒
-
getTimeout
public Long getTimeout()
Get 设置超时时间,单位为秒,最大超时时间300秒。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Timeout 设置超时时间,单位为秒,最大超时时间300秒。 注意:此字段可能返回 null,表示取不到有效值。
-
setTimeout
public void setTimeout(Long Timeout)
Set 设置超时时间,单位为秒,最大超时时间300秒。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Timeout- 设置超时时间,单位为秒,最大超时时间300秒。 注意:此字段可能返回 null,表示取不到有效值。
-
-