Solace JCSMP Streaming - Code Sample

Thanks for your reply.
What I’m trying to achieve is to read messages from the queue in bulk. for example, I want to read 10 messages at a time, and then only after processing the 10 messages I will acknowledge the broker, so those messages will be removed from the queue.
I think, setting the ack mode to SUPPORTED_MESSAGE_ACK_CLIENT, will delete the messages one after the other after invoking msg. acknowledge() method (that’s more like a JMS way), and that’s not what I’m looking for. I think JCSMP API allows me to only delete the messages after consuming the last message in the (SUB_ACK_WINDOW_SIZE) but I m not sure how to implement that.
Thank you !