HAChannelInfo
HAChannelInfo 定义了一个 SmartEDB 高可用性通信通道。
类定义
public static class HAChannelInfo
{
public String protocolType;
public long bytesSent;
public long bytesRcvd;
public boolean supportUnreliable;
public boolean asyncMode;
public HAChannelInfo(String protocolType,
long bytesSent,
long bytesRcvd,
boolean supportUnreliable,
boolean asyncMode)
{
this.protocolType = protocolType;
this.bytesSent = bytesSent;
this.bytesRcvd = bytesRcvd;
this.supportUnreliable = supportUnreliable;
this.asyncMode = asyncMode;
}
};
定义说明
protocolType
网络协议类型名称
bytesSent
已发送的字节数
bytesRcvd
已接收的字节数
supportUnreliable
如果传输支持不可靠数据传输,则为 True
asyncMode
如果主设备当前处于异步模式,则为 True