How to add task to a queue, and only do the task when queue is full or timeout, Java

后端 未结 0 791
清歌不尽
清歌不尽 2020-12-15 10:06

Some times, we need to add the task to a queue, and batch execute them, which is like Kafka\'s batch send. The batch tasks should only be executed when batch size(say 100) i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题