Made more methods in TrafficCounter package-private
This commit is contained in:
parent
079252700b
commit
df1fc4556c
|
@ -458,7 +458,7 @@ public class TrafficCounter {
|
|||
* the size in bytes to read
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
protected void bytesRecvFlowControl(ChannelHandlerContext ctx, long recv)
|
||||
void bytesRecvFlowControl(ChannelHandlerContext ctx, long recv)
|
||||
throws InterruptedException {
|
||||
currentReadingBytes.addAndGet(recv);
|
||||
cumulativeReadBytes.addAndGet(recv);
|
||||
|
@ -514,7 +514,7 @@ public class TrafficCounter {
|
|||
* the size in bytes to write
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
protected void bytesWriteFlowControl(long write) throws InterruptedException {
|
||||
void bytesWriteFlowControl(long write) throws InterruptedException {
|
||||
currentWritingBytes.addAndGet(write);
|
||||
cumulativeWrittenBytes.addAndGet(write);
|
||||
if (limitWrite == 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user