2

Scenario is that I have several threads that ultimately add collections of mutations to specific BatchWriters. I don't want my program to close before all of the mutations are pushed to the Cluster. Is there a way to check the BatchWriter progress or does the BatchWriter stall until it gets through its collection of mutations or am I missing something altogether?

4

1 回答 1

3

只要在添加所有突变后在 BatchWriters 上调用 close() ,就可以了。close() 方法将在客户端阻塞。

于 2013-07-02T21:04:58.120 回答