124 |
count = Math.min(10, commentsCb.getEntryCount() ); |
count = Math.min(10, commentsCb.getEntryCount() ); |
125 |
|
|
126 |
//log.warning("count=" + count + " start=" + start + " entryCount=" + commentsCb.getEntryCount() ); |
//log.warning("count=" + count + " start=" + start + " entryCount=" + commentsCb.getEntryCount() ); |
127 |
CommentsRequest commentsRequest = buildCommentRequest(appId,start,count); |
for (int i=0; i<5;i++) { |
128 |
session.append(commentsRequest, commentsCb); |
CommentsRequest commentsRequest = buildCommentRequest(appId,start,count); |
129 |
start +=10; |
session.append(commentsRequest, commentsCb); |
130 |
|
start +=10; |
131 |
|
} |
132 |
|
|
|
CommentsRequest commentsRequest2 = buildCommentRequest(appId,start,count); |
|
|
session.append(commentsRequest2, commentsCb); |
|
133 |
session.flush(); |
session.flush(); |
134 |
|
|
|
start +=10; |
|
|
|
|
135 |
if (start >= MAXCOMMENTS) |
if (start >= MAXCOMMENTS) |
136 |
break; //emergency brake |
break; //emergency brake |
137 |
|
|