Hi @Sreekanth ,
I’m a bit confused by your question, can you elaborate one what you are trying to achieve?
You are correct that you can configure a redelivery count on a queue (or queue template!) When you receive a message in the new java API you can then check if it has been previously delivered by checking to see if it has been “redelivered” as seen at the link below. Does that give you what you need?
https://github.com/SolaceSamples/solace-samples-java/blob/main/src/main/java/com/solace/samples/java/patterns/GuaranteedSubscriber.java#L112