@@ -105,7 +105,7 @@ public List<SendAbleSessionBytes> fetchBytes(long maxReturnBodySize) {
105
105
break ;
106
106
}
107
107
bytesList .add (next );
108
- currentReturnBodySize += next .sessionBytes .getBytes ().length ;
108
+ currentReturnBodySize += next .sessionBytes () .getBytes ().length ;
109
109
}
110
110
}
111
111
return merge (bytesList );
@@ -128,14 +128,14 @@ public List<SendAbleSessionBytes> fetchBytesBlocked(long maxReturnBodySize) {
128
128
return merge (bytesList );
129
129
} else {
130
130
//根据maxReturnBodySize的限制取出队列中的数据返回
131
- long currentReturnBodySize = first .sessionBytes .getBytes ().length ;
131
+ long currentReturnBodySize = first .sessionBytes () .getBytes ().length ;
132
132
while (currentReturnBodySize < maxReturnBodySize ) {
133
133
SendAbleSessionBytes next = sessionBytesQueue .poll ();
134
134
if (null == next ) {
135
135
break ;
136
136
}
137
137
bytesList .add (next );
138
- currentReturnBodySize += next .sessionBytes .getBytes ().length ;
138
+ currentReturnBodySize += next .sessionBytes () .getBytes ().length ;
139
139
}
140
140
return merge (bytesList );
141
141
}
@@ -150,9 +150,9 @@ private static final class MergeCell {
150
150
private static List <SendAbleSessionBytes > merge (List <SendAbleSessionBytes > bytesList ) {
151
151
Map <Integer , MergeCell > bytesMap = new HashMap <>();
152
152
for (SendAbleSessionBytes ssb : bytesList ) {
153
- MergeCell mergeCell = bytesMap .computeIfAbsent (ssb .sessionBytes .getSessionId (), (r ) -> new MergeCell ());
154
- mergeCell .bytesList .add (ssb .sessionBytes .getBytes ());
155
- mergeCell .callBacks .add (ssb .callBack );
153
+ MergeCell mergeCell = bytesMap .computeIfAbsent (ssb .sessionBytes () .getSessionId (), (r ) -> new MergeCell ());
154
+ mergeCell .bytesList .add (ssb .sessionBytes () .getBytes ());
155
+ mergeCell .callBacks .add (ssb .callBack () );
156
156
}
157
157
List <SendAbleSessionBytes > res = new ArrayList <>(bytesMap .size ());
158
158
bytesMap .forEach ((sessionId , mergeCell ) -> {
0 commit comments