Does Java support any queue object or mechanism to handle batch treatment?
ex: we have a queue(or any desired queue object), some producer push item into the queue one by one, my target is when we have 10 items or more than 10 items in this queue, we can trigger some handler to treat it in one batch.
or it is not triggered automatically, we need to find a way to loop the queue gracefully at the handler side.
do we have typical and high performance object or lib to handle this?
thanks, Emre