diff --git a/docs/quickstart/logproxy-client-tutorial-cn.md b/docs/quickstart/logproxy-client-tutorial-cn.md index e97725b..97b2380 100644 --- a/docs/quickstart/logproxy-client-tutorial-cn.md +++ b/docs/quickstart/logproxy-client-tutorial-cn.md @@ -222,7 +222,114 @@ client.join(); 调用函数 `LogProxyClient.start()` 会启动一个新的线程,该线程将使用 Netty 建立一个到 LogProxy 的连接,并通过该连接接收日志数据。 -LogProxy 客户端还可以通过 `ClientConf` 配置一些客户端行为相关的参数,如下所示是一个使用自定义 `ClientConf` 的例子: +LogProxy 客户端还可以通过 `ClientConf` 配置一些客户端行为相关的参数: + +
参数名 | +是否必需 | +默认值 | +类型 | +设置函数 | +参数说明 | +
---|---|---|---|---|---|
clientId | +否 | +系统生成 | +String | +clientId | +用户自定义客户端id,默认由系统自动生成。 | +
transferQueueSize | +否 | +20000 | +Int | +transferQueueSize | +用于缓冲从LogProxy接收的记录的队列大小。 | +
connectTimeoutMs | +否 | +5000 | +Int | +connectTimeoutMs | +连接超时时间(以毫秒为单位)。 | +
readWaitTimeMs | +否 | +2000 | +Int | +readWaitTimeMs | +读取队列的超时时间(以毫秒为单位)。 | +
retryIntervalS | +否 | +2 | +Int | +retryIntervalS | +重试之间的间隔时间(以秒为单位)。 | +
idleTimeoutS | +否 | +15 | +Int | +idleTimeoutS | +Netty handler空闲超时时间(以秒为单位)。 | +
maxReconnectTimes | +否 | +-1 | +Int | +maxReconnectTimes | +断开连接后的最大重试次数,如果持续idleTimeoutS所配置的时间后,仍没有收到数据,则会触发重新连接。默认值-1代表无限重试。 | +
nettyDiscardAfterReads | +否 | +16 | +Int | +nettyDiscardAfterReads | +Netty尝试读取的最大次数,超过此次数的数据将被丢弃。 | +
ignoreUnknownRecordType | +否 | +false | +boolean | +ignoreUnknownRecordType | +使用warning级别的日志记录未知或不受支持的消息类型,而不是抛出异常。 | +
protocolVersion | +否 | +2 | +Int | +protocolVersion | +与LogProxy服务(cdc模式)的通信协议版本。当前默认值即最新版本V2。 | +
sslContext | +否 | ++ | SslContext | +sslContext | +Netty ssl 上下文。 | +
Option | +Required | +Default | +Type | +Setter | +Description | +
---|---|---|---|---|---|
clientId | +false | +system-generated | +String | +clientId | +User-defined client id, automatically generated by the system by default. | +
transferQueueSize | +false | +20000 | +Int | +transferQueueSize | +Queue size for storing records received from log proxy. | +
connectTimeoutMs | +false | +5000 | +Int | +connectTimeoutMs | +Connection timeout in milliseconds. | +
readWaitTimeMs | +false | +2000 | +Int | +readWaitTimeMs | +Reading queue timeout in milliseconds. | +
retryIntervalS | +false | +2 | +Int | +retryIntervalS | +Time to sleep in seconds when retrying. | +
idleTimeoutS | +false | +15 | +Int | +idleTimeoutS | +Idle timeout in seconds for netty handler. | +
maxReconnectTimes | +false | +-1 | +Int | +maxReconnectTimes | +Maximum number of retries after disconnect, if not data income lasting idleTimeoutS, a reconnection will be triggered. The default value -1 means infinite retries | +
nettyDiscardAfterReads | +false | +16 | +Int | +nettyDiscardAfterReads | +Maximum number of reads, after which data will be discarded. | +
ignoreUnknownRecordType | +false | +false | +boolean | +ignoreUnknownRecordType | +Ignore unknown or unsupported record type with a warning log instead of throwing an exception. | +
protocolVersion | +false | +2 | +Int | +protocolVersion | +Communication protocol version with the LogProxy service (cdc mode). The current default value is the latest version V2. | +
sslContext | +false | ++ | SslContext | +sslContext | +Netty ssl context. | +