Commit ab03413e authored by 赵啸非's avatar 赵啸非

修改文件存储路径

parent b00bf332
......@@ -148,7 +148,7 @@ public abstract class AbstractTbQueueConsumerTemplate<R, T extends TbQueueMsg> i
}
}
abstract protected List<R> doPoll(long durationInMillis);
abstract protected List<R> doPoll(long durationInMillis) throws InterruptedException;
abstract protected T decode(R record);
......
......@@ -55,7 +55,9 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
}
@Override
protected List<GetResponse> doPoll(long durationInMillis) {
protected List<GetResponse> doPoll(long durationInMillis) throws InterruptedException {
Thread.sleep(500);
List<GetResponse> result = queues.stream()
.map(queue -> {
try {
......
......@@ -128,7 +128,7 @@ public class DeviceMsgComsumerStartedService implements IApplicationStartedServi
}
}
}
mainConsumer.commit();
//mainConsumer.commit();
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment