I don't understand, did you mean partitioner somewhere in there?

I have been considering the partitioners almost like primitives, so the producer keeps a partitioner and a lock to control access to it the same way it would keep a map and a lock to control access to it.