get only first message

Hi @sachiek . So you only want to receive a single message off a queue? And then what? Disconnect? May I ask what the use case is?

SdkPerf tools will generally try to receive as many messages off a queue as fast as possible, so probably not the best tool there.

If you want to write some code, and very tightly control the number of messages you receive, you could use a blocking Flow Session, where you pass null into the createFlow() method.

OR perhaps I’ve misread you, and you want to choose the first message off a queue that has a certain property…??