큐 조회 적재 로직 수정
This commit is contained in:
parent
f803f5c5a1
commit
9ea4d7653b
@ -195,6 +195,8 @@ public class QueueServerService extends Service {
|
||||
private void messageService() throws Exception {
|
||||
int DB_PROC_COUNT = 0;
|
||||
List<BasicMessageDto> list = new ArrayList<>();
|
||||
/* 큐 메시지 조회 */
|
||||
try {
|
||||
for (int loopCnt = 0; loopCnt < ServiceUtil.COMMIT_COUNT; loopCnt++) {
|
||||
BasicMessageDto messageDto = readQueue.popMessageFromBuffer();
|
||||
if (messageDto == null) {
|
||||
@ -210,6 +212,9 @@ public class QueueServerService extends Service {
|
||||
DB_PROC_COUNT++;
|
||||
SUM_COMMIT_COUNT++;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
saveLog(e);
|
||||
}
|
||||
|
||||
// DB 처리한 카운트에 대한 처리
|
||||
if (DB_PROC_COUNT > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user