add qos support

Hi! I've added qos support. I've only checked prefetch_count, so I don't guarantee that other parameters work.
I think, you are totally right. but I don't need this parameter now, so I don't have motivation in working in that direction.
Probably, I should just remove exposing this parameter in public api, because I don't guarantee, that this part of my commit works.