a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
218
stars
69
forks
source link
Improvement: rename the variables in TCP reconnect function and some default constants. #124
rename the variables in TCP reconnect function and some default constants.
1.rename constant 'reconnectInterval' to defaultReconnectInterval and 'maxTimes' to defaultMaxReconnectAttempts, indicates that these two constants are the default settings.
2.rename vars in reConnect():
num->sessionNum,indicates the number of current sessions.
max->maxReconnectAttempts,indicates the maximum attempt times of reconnections.
times->reconnectAttempts, indicates the current number of reconnect attempts.
interval->reconnectInterval,indicates the interval between each reconnection.
maxDuration->maxReconnectInterval, indicates the max interval between each reconnection.
Which issue(s) this PR fixes:
NONE
Special notes for your reviewer:
NONE
Does this PR introduce a user-facing change?:
What this PR does:
rename the variables in TCP reconnect function and some default constants.
1.rename constant 'reconnectInterval' to defaultReconnectInterval and 'maxTimes' to defaultMaxReconnectAttempts, indicates that these two constants are the default settings.
2.rename vars in reConnect():
Which issue(s) this PR fixes: NONE
Special notes for your reviewer: NONE Does this PR introduce a user-facing change?: