views:

32

answers:

0

I use concurrenthashmap to store my data.And I wanna audit, pass over a part of my map according to a timer.I mean, a timer will tell me to start audit and I will pass over a part of the map and then I will stop auditing until the timer's next poke, when timer pokes me again I will start audit where I stopped last time. But, I'm not sure what to do.

Should I use enumeration or iteration to pass over the map? Which one would be more effective?

How could I store the data that shows the next point to start audit. Should next point info be decided according to the segment number, or anything else?

How could the part of the map that will be audited in one pass be decided? Should there be a counter about that counts the segment number audited in one pass?

If there is someone who worked on auditing concurrenthashmap may help me about the steps,and challenges.