FabricClientSettings.setKeepAliveInterval(Duration keepAliveInterval) 方法
定义
Sets the interval at which the FabricClient will ping the connected endpoint.
Remarks:The default value of this property is 0 seconds. This property can't be updated after the FabricClient is opened. Setting this property will throw a java.lang.IllegalArgumentException exception. FabricClient will continue pinging as long as it has pending operations.
public void setKeepAliveInterval(Duration keepAliveInterval)
参数
- keepAliveInterval
- Duration
The interval at which the FabricClient will ping the connected endpoint.